Function toPascalCase

  • Converts a string to Pascal case.

    Parameters

    • str: string

      The input string to be converted.

    Returns string

    The Pascal case version of the input string.

    Example

    const inputString = 'to_pascal_case';
    const pascalCaseString = toPascalCase(inputString);
    console.log(pascalCaseString); // "ToPascalCase"

Generated using TypeDoc