camelToPascal()
Returns a string without spaces, and with the first letter of each word capitalized.
Usage
import { camelToPascal } from 'string-factory';
camelToPascal(string);
Prop types
prop | type | required | default |
---|---|---|---|
string | String | yes | null |
Examples
camelToPascal("helloWorld") // "HelloWorld"
camelToPascal("changeToPascalCase") // "ChangeToPascalCase"