(str: string)
| 33 | |
| 34 | // Splits camelCase with ZWJ characters to help with line breaking |
| 35 | export function splitUpperCase(str: string): string { |
| 36 | if (!str) { |
| 37 | return str; |
| 38 | } |
| 39 | |
| 40 | return str |
| 41 | .split('') |
| 42 | .reduce((res, letter) => res + (isUppercase(letter) ? `\u00ad${letter}` : letter), ''); |
| 43 | } |
no test coverage detected