1.0.0 • Published 10 months ago

@not-js/not v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Not.js

Returns the negation of a function

Example

var not = require('@not-js/not')
var t = require('true')
var constant = function(v) {
  return function() {
    return v
  }
}


console.log(not(constant)(false)) // true
console.log(not(constant)(true)) // false
console.log(not(t)()) // false 

Installation

npm install @not-js/not