Skip to content

camelize ​

Convert a string to camelCase.

Usage ​

ts
import { camelize } from 'rattail'

camelize('hello-world') // return 'helloWorld'
camelize('FooBar') // return 'fooBar'

Arguments ​

ArgTypeDefaults
valuestring

Return ​

Type
string