(str: string)
| 68 | * @returns The kebab-case string. |
| 69 | */ |
| 70 | export function camelToKebabCase(str: string): string { |
| 71 | return str.replace(/[A-Z0-9]/g, (match) => `-${match.toLowerCase()}`); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Ensures a string ends with a slash. |
no outgoing calls
no test coverage detected