It will convert the given string to kebab case.
string
1.0.0
kebabCase("camelCase"); // => "camel-case" Copy
kebabCase("camelCase"); // => "camel-case"
kebabCase("some text"); // => "some-text" Copy
kebabCase("some text"); // => "some-text"
kebabCase("some-mixed_string With spaces_underscores-and-hyphens");// => "some-mixed-string-with-spaces-underscores-and-hyphens" Copy
kebabCase("some-mixed_string With spaces_underscores-and-hyphens");// => "some-mixed-string-with-spaces-underscores-and-hyphens"
kebabCase("AllThe-small Things"); // => "all-the-small-things" Copy
kebabCase("AllThe-small Things"); // => "all-the-small-things"
kebabCase("IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML");// => "i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html" Copy
kebabCase("IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML");// => "i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html"
It will convert the given
stringto kebab case.