reject.js 289 B

12345678910
  1. var filter = require('./filter.js');
  2. var negate = require('./negate.js');
  3. var _cb = require('./_cb.js');
  4. // Return all the elements for which a truth test fails.
  5. function reject(obj, predicate, context) {
  6. return filter(obj, negate(_cb(predicate)), context);
  7. }
  8. module.exports = reject;