kebabToPascal
Converts a kebab-case string to a PascalCase string.
Parameters
str{string}: Thekebab-casestring to convert.
Returns
{string}: The converted
PascalCasestring.
const result = kebabToPascal('kebab-case-string');
console.log(result); // Output: KebabCaseStringLast updated