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