UNPKG

underscore-es

Version:

javaScript's functional programming helper library for ES6 and beyond.

9 lines (8 loc) 260 B
// `_negate` : (ahem) a function's function // ----------------------------------------- // Returns a negated version of the passed-in predicate. export default function (predicate) { return function () { return !predicate.apply(this, arguments); }; }