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
| Parameter | Type | Description |
|---|---|---|
str | string | The string to convert. |
Returns
string
The camelCase string.
Example
ts
camelCase('hello-world'); // 'helloWorld'