source:
frontend/node_modules/underscore/amd/negate.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 218 bytes | |
| Line | |
|---|---|
| 1 | define(function () { |
| 2 | |
| 3 | // Returns a negated version of the passed-in predicate. |
| 4 | function negate(predicate) { |
| 5 | return function() { |
| 6 | return !predicate.apply(this, arguments); |
| 7 | }; |
| 8 | } |
| 9 | |
| 10 | return negate; |
| 11 | |
| 12 | }); |
Note:
See TracBrowser
for help on using the repository browser.
