• Returns the camel case representation of the given string

    Parameters

    • Optionaltext: null | string

      the source string to inspect

    Returns string | undefined | null

    the camel case representation of the given string

    toCamelCase('FOO BAR');    // 'fooBar'
    toCamelCase('--foo-bar--'); // 'fooBar'
    toCamelCase('__FOO_BAR__'); // 'fooBar'