lib/utils/reject_fields.js
function rejectFields(result, fields) {
    // If result is an array, then rejection rules are applied to each array entry
    if (_.isArray(result)) {
        return _.map(result, (single_entry) => _.omit(single_entry, fields));
    }
    return _.omit(result, fields);
}
function rejectFields(result, fields) {
    // If result is an array, then rejection rules are applied to each array entry
    if (_.isArray(result)) {
        return _.map(result, (single_entry) => _.omit(single_entry, fields));
    }
    return _.omit(result, fields);
}
function rejectFields ( result , fields ) { // If result is an array, then rejection rules are applied to each array entry if ( _ . isArray ( result ) ) { return _ . map ( result , ( single_entry ) => _ . omit ( single_entry , fields ) ) ; } return _ . omit ( result , fields ) ; }
Reject fields from result
@param result
@param fields
@return {*}
Reject fields from result