lib/utils.js
function pickParams(params, keys) {
    params = _.cloneDeep(params);
    // decamelize all options
    for (var key in params) {
        var value = params[key];
        delete params[key];
        // TODO: handle this inconsistency consistently in the library :(
        // 'base64String': introduced by 'image.upload()'
        if (["base64String"].indexOf(key) === -1) {
            key = decamelize(key, "_");
        }
        params[key] = value;
    }
    if (SETTINGS.enforce_params_filter) {
        return _.pick(params, keys);
    }
    return params;
}
function pickParams(params, keys) {
    params = _.cloneDeep(params);
    // decamelize all options
    for (var key in params) {
        var value = params[key];
        delete params[key];
        // TODO: handle this inconsistency consistently in the library :(
        // 'base64String': introduced by 'image.upload()'
        if (["base64String"].indexOf(key) === -1) {
            key = decamelize(key, "_");
        }
        params[key] = value;
    }
    if (SETTINGS.enforce_params_filter) {
        return _.pick(params, keys);
    }
    return params;
}
function pickParams ( params , keys ) { params = _ . cloneDeep ( params ) ; // decamelize all options for ( var key in params ) { var value = params [ key ] ; delete params [ key ] ; // TODO: handle this inconsistency consistently in the library :( // 'base64String': introduced by 'image.upload()' if ( [ "base64String" ] . indexOf ( key ) === - 1 ) { key = decamelize ( key , "_" ) ; } params [ key ] = value ; } if ( SETTINGS . enforce_params_filter ) { return _ . pick ( params , keys ) ; } return params ; }
Pick out parameters

@param  {Object} params
@return {Object} cleaner params
Pick out parameters