not

Returns the negation of a function

npm install not
1 downloads in the last day
9 downloads in the last week
28 downloads in the last month

not

Returns the negation of a function

Example

var not = require("not")
    , truth = function () { return true }
    , lies = function () { return false }

// false true
console.log(not(truth)(), not(lies)())

Installation

npm install not

Contributors

  • Raynos

MIT Licenced

npm loves you