(input: string)
| 115 | * e.g. "some-example-string" returns a "Some example string". |
| 116 | */ |
| 117 | export function kebabToSentenceCase(input: string): string { |
| 118 | return input |
| 119 | .split("-") |
| 120 | .map((word, index) => |
| 121 | index === 0 ? capitalizeSentence(word, false) : word.toLowerCase(), |
| 122 | ) |
| 123 | .join(" "); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * e.g. "some-example-string" returns a "Some Example String". |
nothing calls this directly
no test coverage detected