Skip to content

dependabit / utils/src / camelCase

Function: camelCase() ​

ts
function camelCase(str): string;

Defined in: packages/utils/src/string.ts:31

Converts a string to camelCase.

Parameters ​

ParameterTypeDescription
strstringThe string to convert.

Returns ​

string

The camelCase string.

Example ​

ts
camelCase('hello-world'); // 'helloWorld'

Released under the MIT License.