Skip to content

PURISTA API


PURISTA API / @purista/core / convertToCamelCase

Function: convertToCamelCase()

convertToCamelCase(str): string

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

Converts a string into camelCase.

Parameters

str

string

Returns

string

Example

ts
convertToCamelCase('some-text')
// => 'someText'

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