index.js
function camelize(str) {
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, (letter, index) => {
    return index === 0 ? letter.toLowerCase() : letter.toUpperCase()
  }).replace(/[\s\-_]+/g, '')
}
function camelize(str) {
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, (letter, index) => {
    return index === 0 ? letter.toLowerCase() : letter.toUpperCase()
  }).replace(/[\s\-_]+/g, '')
}
function camelize ( str ) { return str . replace ( / (?:^\w|[A-Z]|\b\w) / g , ( letter , index ) => { return index === 0 ? letter . toLowerCase ( ) : letter . toUpperCase ( ) } ) . replace ( / [\s\-_]+ / g , '' ) }
Convert a string to camelCase.
@param {String} str The string to camelize.
@return {String} The camelized version of the provided string.
Convert a string to camelCase .