camelToPascal
Converts a camelCase string to a PascalCase string.
Parameters
str{string}: ThecamelCasestring to convert.
Returns
{string}: The converted
PascalCasestring.
const result1 = camelToPascal('camelCaseString');
console.log(result1); // Output: CamelCaseStringLast updated