pascalCase
Converts the input string to pascal case.
pascalCase
Converts the input string to pascal case.
Type: transform
Aliases
pascalcase
, toPascalCase
Parameters
- input (unknown): The input string to convert to pascal case.
Returns
Type: string
The pascal case string, or empty string if input is not a string.
Examples
pascalCase("foo bar") // "FooBar"
"hello-world"|pascalCase // "HelloWorld"
pascalCase("HELLO_WORLD") // "HelloWorld"