1 export const camelToSnakeCase = (string) =>
2 string.replace(/([a-z])([A-Z])/g, "$1_$2").toLowerCase()