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