npm.io
0.1.0 • Published 13 years ago

not

Licence
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
Stars
9

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