(str: string)
| 1 | import stringifyObject from 'stringify-object' |
| 2 | |
| 3 | export function kebabToCamel(str: string) { |
| 4 | return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase()) |
| 5 | } |
| 6 | |
| 7 | export function camelToKebab(str: string) { |
| 8 | return str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`) |
no outgoing calls
no test coverage detected