Skip to content

PURISTA API


PURISTA API / @purista/core / convertToPascalCase

Function: convertToPascalCase()

convertToPascalCase(str): string

Defined in: helper/string/convertToPascalCase.impl.ts:13

Converts a string into PascalCase.

Parameters

str

string

Returns

string

Example

ts
convertToPascalCase('my-text')
// => 'MyText'

https://github.com/30-seconds/30-seconds-of-code