camelCase
stringConverts string to camel case.
Signature
camelCase(str: string): stringParameters
| Name | Type | Description |
|---|---|---|
str | string | The string to convert |
Returns
string - Returns the camel cased string
Examples
Basic Usage
import { camelCase } from 'dashlite'
const result = camelCase('Foo Bar')
console.log(result)Output:
fooBarWith Hyphens
import { camelCase } from 'dashlite'
const result = camelCase('--foo-bar--')
console.log(result)Output:
fooBarAvailable since version 1.0.0