camelCase
camelCase(str: string): stringSource: string.ts:45
Converts a string to camelCase
Parameters
str(string) — The input string (can be kebab-case, snake_case, or space-separated)
Returns
string— camelCased string
Example
CODE
camelCase('hello-world') // 'helloWorld'
camelCase('hello_world') // 'helloWorld'
camelCase('Hello World') // 'helloWorld'