Converts a string to kebab-case. Handles various separators and case transitions.
kebabCase('helloWorld');// => 'hello-world'kebabCase('HelloWorldTest');// => 'hello-world-test' Copy
kebabCase('helloWorld');// => 'hello-world'kebabCase('HelloWorldTest');// => 'hello-world-test'
String to convert
kebab-cased string
Converts a string to kebab-case. Handles various separators and case transitions.
Example