(str: string)
| 48 | * @returns The camelCase string. |
| 49 | */ |
| 50 | export function snakeToCamelCase(str: string): string { |
| 51 | return str.replace(/_./g, (match) => match.charAt(1).toUpperCase()); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Converts a camelCase string to snake_case. |
no outgoing calls
no test coverage detected