camelCase
Converts a string to camelCase. Handles PascalCase, kebab-case, snake_case, spaces, and mixed formats.
An embedded run of capitals is treated as an acronym boundary: only its last letter starts
the next word, the rest are lowercased (matching lodash’s camelCase convention) — so an
already-camelCase identifier containing an acronym is not left untouched.
Available since v1.9.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
str | string | The string to convert |
Returns
Section titled “Returns”string — String in camelCase
Examples
Section titled “Examples”Convert kebab-case to camelCase
Section titled “Convert kebab-case to camelCase”Converts a kebab-case string to camelCase.
