Skip to content

pascalCase

pascalCase(target)

Converts target string to PascalCase format.

ts
pascalCase("hello world"); // "HelloWorld"
pascalCase("hello-world"); // "HelloWorld"
ts
pipe("hello world", pascalCase()); // "HelloWorld"
pipe("hello-world", pascalCase()); // "HelloWorld"