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