Skip to main content

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

proptyperequireddefault
stringStringyesnull

Examples

camelToPascal("helloWorld") // "HelloWorld" 
camelToPascal("changeToPascalCase") // "ChangeToPascalCase"