clean-jsdoc-theme TypeDoc APIv0.0.0

camelCase

camelCase(str: string): string

Source: 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'