Converts a string to kebab case.
This function converts a string to kebab case, replacing spaces with underscores and converting uppercase letters to lowercase, prefixed with an dash (-).
The string to be converted to kebab case.
The kebab case string.
kebabCase("Hello World"); // "hello-world"kebabCase("kebabCaseString"); // "kebab-case-string" Copy
kebabCase("Hello World"); // "hello-world"kebabCase("kebabCaseString"); // "kebab-case-string"
Converts a string to kebab case.
This function converts a string to kebab case, replacing spaces with underscores and converting uppercase letters to lowercase, prefixed with an dash (-).