Converts a given string to PascalCase.
The input string to convert.
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); // "" Copy
toPascalCase('hello world'); // "HelloWorld"toPascalCase('foo_bar-baz'); // "FooBarBaz"toPascalCase(' someInputValue '); // "SomeInputValue"toPascalCase(undefined); // ""
Converts a given string to PascalCase.