kebabCase source npm
_.kebabCase([string=''])
Converts string
to kebab case.
Arguments
- [string=''] (string)
The string to convert.
Returns (string)
Returns the kebab cased string.
Example
_.kebabCase('Foo Bar');
// => 'foo-bar'
_.kebabCase('fooBar');
// => 'foo-bar'
_.kebabCase('__foo_bar__');
// => 'foo-bar'