camelToPascal

Converts a camelCase string to a PascalCase string.

Parameters

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

Returns

  • {string}: The converted PascalCase string.

const result1 = camelToPascal('camelCaseString');
console.log(result1); // Output: CamelCaseString

Last updated