9 lines
187 B
JavaScript
Raw Normal View History

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