lib/camelCase.js
function camelCase(text) {
    text = text || '';
    return text.replace(/(?:^\w|[A-Z]|\b\w)/g, (letter, index) => {
        return index === 0 ? letter.toLowerCase() : letter.toUpperCase();
    }).replace(/\s+/g, '');
}
function camelCase(text) {
    text = text || '';
    return text.replace(/(?:^\w|[A-Z]|\b\w)/g, (letter, index) => {
        return index === 0 ? letter.toLowerCase() : letter.toUpperCase();
    }).replace(/\s+/g, '');
}
function camelCase ( text ) { text = text || '' ; return text . replace ( / (?:^\w|[A-Z]|\b\w) / g , ( letter , index ) => { return index === 0 ? letter . toLowerCase ( ) : letter . toUpperCase ( ) ; } ) . replace ( / \s+ / g , '' ) ; }
Converts string to a camel cased string

@method camelCase
@param {string} text
@returns {string}
@public
Converts string to a camel cased string