(input: string)
| 156 | * e.g. "some_example_string" returns a "someExampleString". |
| 157 | */ |
| 158 | export function snakeToCamelCase(input: string): string { |
| 159 | return input |
| 160 | .split("_") |
| 161 | .map((word, index) => |
| 162 | index === 0 ? word : capitalizeSentence(word, false), |
| 163 | ) |
| 164 | .join(""); |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * e.g. "some_example_string" returns a "Some example string". |
no test coverage detected