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

11 lines
264 B
JavaScript
Raw Normal View History

2022-06-28 16:39:30 +08:00
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;
});