mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 12:18:26 -04:00
9 lines
187 B
JavaScript
9 lines
187 B
JavaScript
|
|
// Returns a negated version of the passed-in predicate.
|
||
|
|
function negate(predicate) {
|
||
|
|
return function() {
|
||
|
|
return !predicate.apply(this, arguments);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = negate;
|