setup-maven-cached/node_modules/underscore/amd/reject.js
2022-06-28 10:39:30 +02:00

11 lines
264 B
JavaScript

define(['./filter', './negate', './_cb'], function (filter, negate, _cb) {
// Return all the elements for which a truth test fails.
function reject(obj, predicate, context) {
return filter(obj, negate(_cb(predicate)), context);
}
return reject;
});