Checks if a string is in kebab-case format.
The input string.
True if the string is kebab-case.
isKebabCase("hello-world") // trueisKebabCase("hello_world") // false Copy
isKebabCase("hello-world") // trueisKebabCase("hello_world") // false
Checks if a string is in kebab-case format.