util.ts 135 B

12345
  1. export function toHump(name: string) {
  2. return name.replace(/_(\w)/g, function(_, letter){
  3. return letter.toUpperCase();
  4. });
  5. }