function camelToSnake(camelCase) { return camelCase.replace(/([a-z])([A-Z])/g, '$1_$2').toUpperCase(); }