Transfer CamelCase to KebabCase.
Usage:
const ret1 = convertCamelToKebab('ABC');const ret2 = convertCamelToKebab('aBC');console.log(ret1);console.log(ret2); Copy
const ret1 = convertCamelToKebab('ABC');const ret2 = convertCamelToKebab('aBC');console.log(ret1);console.log(ret2);
Output:
a-b-c a-b-c Copy
a-b-c a-b-c
'aBC' or 'ABC'
'a-b-c'
Transfer CamelCase to KebabCase.
Usage:
Output: