kebabCase

String
since 3.0.0

Arguments

  • string The string to convert.

Returns

string the kebab cased string.

Converts string to kebab case.

Example of Lodash _.kebabCase

_.kebabCase('Foo Bar');
// => 'foo-bar'

_.kebabCase('fooBar');
// => 'foo-bar'

_.kebabCase('__FOO_BAR__');
// => 'foo-bar'