kebabToPascal

Converts a kebab-case string to a PascalCase string.

Parameters

  • str {string}: The kebab-case string to convert.

Returns

  • {string}: The converted PascalCase string.

const result = kebabToPascal('kebab-case-string');
console.log(result); // Output: KebabCaseString

Last updated