(str: string)
| 5 | } |
| 6 | |
| 7 | export function camelToKebab(str: string) { |
| 8 | return str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`) |
| 9 | } |
| 10 | |
| 11 | export function snakeToKebab(str: string) { |
| 12 | return str.replace(/_/g, '-').toLowerCase() |
no outgoing calls
no test coverage detected