mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-24 04:36:31 +00:00
10 lines
360 B
Markdown
10 lines
360 B
Markdown
# `string.camelToHyphen()` _(ext/string\_/camel-to-hyphen)_
|
|
|
|
Convert camelCase string to hyphen separated, e.g. `oneTwoThree` into `one-to-three`. Useful when converting names from js property convention into filename convention.
|
|
|
|
```javascript
|
|
const camelToHyphen = require("ext/string_/camelToHyphen");
|
|
|
|
camelToHyphen.call("razDwaTrzy"); // raz-dwa-trzy
|
|
```
|