(identifier: string | string[])
| 35 | |
| 36 | /** reformat an identifier to camel case */ |
| 37 | export function camelCase(identifier: string | string[]): string { |
| 38 | return deconstruct(identifier) |
| 39 | .map((each, index) => index === 0 ? each : each.charAt(0).toUpperCase() + each.slice(1)) |
| 40 | .join(''); |
| 41 | } |
| 42 | |
| 43 | /** reformat an identifier to dash case */ |
| 44 | export function dashCase(identifier: string | string[]): string { |
nothing calls this directly
no test coverage detected