Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typescript convert snake case to camel case

type SnakeToCamelCase<S extends string> =
  S extends `${infer T}_${infer U}` ?
  `${T}${Capitalize<SnakeToCamelCase<U>>}` :
  S
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #convert #snake #case #camel #case
ADD COMMENT
Topic
Name
3+3 =