Skip to content

hyphenate

描述

将驼峰命名转换为连字符命名。

示例

ts
import { hyphenate } from '@base-web-kits/base-tools-vue';

const str = hyphenate('fooBar'); // 'foo-bar'
```来源

[VueUse](https://vueuse.org/functions/hyphenate/)