Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 307 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 307 Bytes

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