Camel to Snake

const camelToSnakeCase = str => 
	  str.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`);

(Snake, Kebab) to Camel

const snakeToCamel = str =>
  str.toLowerCase().replace(/([-_][a-z])/g, group =>
    group
      .toUpperCase()
      .replace('-', '')
      .replace('_', '')
  );

Pascal to Camel

const pascalToCamel = str =>
    str[0].toLowerCase() + str.substring(1);