reject.js 267 B

12345678
  1. import filter from './filter.js';
  2. import negate from './negate.js';
  3. import cb from './_cb.js';
  4. // Return all the elements for which a truth test fails.
  5. export default function reject(obj, predicate, context) {
  6. return filter(obj, negate(cb(predicate)), context);
  7. }