pascalToKebab

Converts a Pascalcase string to a snake-case string.

Parameters

  • str {string}: The Pascalcase string to convert.

Returns

  • {string}: The converted snake-case string.

const result = pascalToKebab('PascalCaseString');
console.log(result); // Output: Kebab-case-string

Last updated