Function kebabToPascal

  • Converts a kebab-case string to a PascalCase string

    Parameters

    • str: string

    Returns string

    kebabToPascal('hello-world'); // HelloWorld