lib/index.js
function camelize(obj) {
    if (!obj || typeof obj === 'string') return obj
    if (Array.isArray(obj)) return obj.map(camelize)
    if (typeof obj === 'object') {
      return Object.keys(obj).reduce(function(camelizedObj, k) {
        camelizedObj[camel(k)] = camelize(obj[k])
        return camelizedObj
      }, {})
    }
    return obj
  }
function camelize(obj) {
    if (!obj || typeof obj === 'string') return obj
    if (Array.isArray(obj)) return obj.map(camelize)
    if (typeof obj === 'object') {
      return Object.keys(obj).reduce(function(camelizedObj, k) {
        camelizedObj[camel(k)] = camelize(obj[k])
        return camelizedObj
      }, {})
    }
    return obj
  }
function camelize ( obj ) { if ( ! obj || typeof obj === 'string' ) return obj if ( Array . isArray ( obj ) ) return obj . map ( camelize ) if ( typeof obj === 'object' ) { return Object . keys ( obj ) . reduce ( function ( camelizedObj , k ) { camelizedObj [ camel ( k ) ] = camelize ( obj [ k ] ) return camelizedObj } , { } ) } return obj }
camelize all keys of an object, or all objects in an array
camelize all keys of an object or all objects in an array