You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
360 B
10 lines
360 B
2 years ago
|
# `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
|
||
|
```
|