4.17.11
3.10.1
2.4.2
1.3.1
_.kebabCase([string=''])
Converts string
to
kebab case.
Since
3.0.0
Arguments
argument
[string='']
type
string
description
The string to convert.
Returns
(array)
Example
_.kebabCase("Foo Bar");
// => 'foo-bar'
_.kebabCase("fooBar");
// => 'foo-bar'
_.kebabCase("__FOO_BAR__");
// => 'foo-bar'
_.kebabCase("Foo Bar");
// => 'foo-bar'
_.kebabCase("fooBar");
// => 'foo-bar'
_.kebabCase("__FOO_BAR__");
// => 'foo-bar'