Returns the kebab case representation of the given string
Optional
the source string to inspect
the kebab case representation of the given string
toKebabCase('FOO BAR'); // 'foo-bar'toKebabCase('fooBar'); // 'foo-bar'toKebabCase('__FOO_BAR__'); // 'foo-bar' Copy
toKebabCase('FOO BAR'); // 'foo-bar'toKebabCase('fooBar'); // 'foo-bar'toKebabCase('__FOO_BAR__'); // 'foo-bar'
Returns the kebab case representation of the given string