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