Files
2025-03-20 17:35:53 +08:00

7 lines
176 B
JavaScript

// Returns a negated version of the passed-in predicate.
export default function negate(predicate) {
return function() {
return !predicate.apply(this, arguments);
};
}