not

Returns the negation of a function

Usage no npm install needed!

<script type="module">
  import not from 'https://cdn.skypack.dev/not';
</script>

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