Function camelCase

  • Converts string to camel case.

    Parameters

    • s: string

      The string to convert.

    Returns string

    Returns the camel cased string.

    Since

    5.5.0

    See

    [[lowerCase]], [[kebabCase]], [[snakeCase]], [[startCase]], [[upperCase]], [[upperFirst]]

    Example

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

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

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