11 lines
289 B
JavaScript
Raw Permalink Normal View History

2025-04-23 09:34:08 +08:00
var _cb = require('./_cb.js');
var filter = require('./filter.js');
var negate = require('./negate.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;