negate.js 218 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 define(function () { // Returns a negated version of the passed-in predicate. function negate(predicate) { return function() { return !predicate.apply(this, arguments); }; } return negate; });