Imed Jaberi 28908902ce
Improve the questions sub-folders names (#8850)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-19 12:04:56 +08:00

1.4 KiB

Camelize hard #union #recursion

by Denis @denchiklut

Take the Challenge

Implement Camelize which converts object from snake_case to to camelCase

Camelize<{
  some_prop: string, 
  prop: { another_prop: string },
  array: [{ snake_case: string }]
}>

// expected to be
// {
//   someProp: string, 
//   prop: { anotherProp: string },
//   array: [{ snakeCase: string }]
// }

Back Share your Solutions Check out Solutions