(str: string)
| 37 | } |
| 38 | |
| 39 | function hyphenate(str: string): string { |
| 40 | return str.replace(RE_CAMEL, w => `-${w}`).toLowerCase(); |
| 41 | } |
| 42 | |
| 43 | function camelize(str: string): string { |
| 44 | return str.replace(RE_HYPHEN, (m, w) => (w ? w.toUpperCase() : '')); |
no test coverage detected
searching dependent graphs…