TS-Scribe - v0.6.2
    Preparing search index...

    Function toPascalCase

    • Converts a given string to PascalCase.

      Parameters

      • text: string | undefined

        The input string to convert.

      Returns string

      The PascalCase version of the input string, or an empty string if input is falsy.

      toPascalCase('hello world');         // "HelloWorld"
      toPascalCase('foo_bar-baz'); // "FooBarBaz"
      toPascalCase(' someInputValue '); // "SomeInputValue"
      toPascalCase(undefined); // ""