Skip to content

Files

Latest commit

Sep 11, 2021
ff979aa · Sep 11, 2021

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