TypeScript Professional — Hard
Key points
- Conditional type checking is used to determine if the current character is uppercase or lowercase.
- Recursion is applied to process each character in the string.
- The resulting string has underscores inserted before uppercase letters to convert camelCase to snake_case.
Ready to go further?
Related questions
