not

Returns the negation of a function

1 个版本
安装
npm install not
yarn add not
pnpm add not
bun add not
README

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