Converts a PascalCase or camelCase string to kebab-case.
The input string to convert.
The input string converted to kebab-case.
toKebabCase("ZarCore"); // "zar-core"toKebabCase("MyAppName"); // "my-app-name"toKebabCase("camelCase"); // "camel-case" Copy
toKebabCase("ZarCore"); // "zar-core"toKebabCase("MyAppName"); // "my-app-name"toKebabCase("camelCase"); // "camel-case"
Converts a PascalCase or camelCase string to kebab-case.