reject.js 267 B

123456789
  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. }