setup-maven-cached/node_modules/underscore/cjs/reject.js

11 lines
289 B
JavaScript
Raw Permalink Normal View History

2022-06-28 16:39:30 +08:00
var filter = require('./filter.js');
var negate = require('./negate.js');
var _cb = require('./_cb.js');
// Return all the elements for which a truth test fails.
function reject(obj, predicate, context) {
return filter(obj, negate(_cb(predicate)), context);
}
module.exports = reject;