Files

9 lines
187 B
JavaScript
Raw Permalink Normal View History

2025-03-20 17:35:53 +08:00
// Returns a negated version of the passed-in predicate.
function negate(predicate) {
return function() {
return !predicate.apply(this, arguments);
};
}
module.exports = negate;