<!-- Notes: 🎉 Congrats on solving the challenge and we are happy to see you'd like to share your solutions! However, due to the increasing number of users, the issue pool would be filled by answers very quickly. Before you submit your solutions, please kindly search for similar solutions that may already be posted. You can "thumb up" on them or leave your comments on that issue. If you think you have a different solution, do not hesitate to create the issue and share it with others. Sharing some ideas or thoughts about how to solve this problem is greatly welcome! Thanks! --> ```ts // your answers type IsAlphabet<T extends string> = Lowercase<T> extends Uppercase<T> ? false : true type CamelCase< S extends string, Result extends string = '' > = S extends `${infer Left}${infer Rest}` ? IsAlphabet<Left> extends true ? Result extends `${infer Prefix}_` ? CamelCase<Rest,`${Prefix}${Uppercase<Left>}`> : CamelCase<Rest, `${Result}${Lowercase<Left>}`> : CamelCase<Rest, `${Result}${Left}`> : Result ```
Activity
HubooDeclan commentedon Apr 28, 2023
Great work! Love the alphabet check
GolubevS commentedon Dec 25, 2025
Tail-recursive solution, great!