not

0.1.0 • Public • Published

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

/not/

    Package Sidebar

    Install

    npm i not

    Weekly Downloads

    209,695

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • raynos