negate.js 176 B

123456
  1. // Returns a negated version of the passed-in predicate.
  2. export default function negate(predicate) {
  3. return function() {
  4. return !predicate.apply(this, arguments);
  5. };
  6. }