Convert a string to PascalCase by capitalizing the first letter of each word.
The input string.
The string converted to PascalCase.
// Returns 'HelloWorld'titleCase('hello world');// Returns 'Hello-world'titleCase('hello-world');// Returns 'HelloWorld'titleCase(' hello world '); Copy
// Returns 'HelloWorld'titleCase('hello world');// Returns 'Hello-world'titleCase('hello-world');// Returns 'HelloWorld'titleCase(' hello world ');
Generated using TypeDoc
Convert a string to PascalCase by capitalizing the first letter of each word.