clean-jsdoc-theme TypeDoc APIv0.0.0

pascalCase

pascalCase(str: string): string

Source: string.ts:110

Converts a string to PascalCase

Parameters

  • str (string) — The input string

Returns

  • string — PascalCased string

Example

CODE
pascalCase('hello-world') // 'HelloWorld'
pascalCase('hello_world') // 'HelloWorld'
pascalCase('helloWorld') // 'HelloWorld'