Function camelCase

  • Converts string to camel case.

    Parameters

    • Optionalstring: string

      The string to convert.

    Returns string

    Returns the camel cased string.

    3.0.0

    lowerCase, kebabCase, snakeCase, startCase, upperCase, upperFirst

    camelCase('Foo Bar')
    // => 'fooBar'

    camelCase('--foo-bar--')
    // => 'fooBar'

    camelCase('__FOO_BAR__')
    // => 'fooBar'