7fife-backend/node_modules/underscore/amd/negate.js

13 lines
218 B
JavaScript
Raw Permalink Normal View History

2024-03-07 13:01:44 +00:00
define(function () {
// Returns a negated version of the passed-in predicate.
function negate(predicate) {
return function() {
return !predicate.apply(this, arguments);
};
}
return negate;
});