9 lines
187 B
JavaScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
// Returns a negated version of the passed-in predicate.
function negate(predicate) {
return function() {
return !predicate.apply(this, arguments);
};
}
module.exports = negate;