1.0.0 • Published 10 years ago
negate v1.0.0
negate
Returns a negated version of the given function.
var negate = require('negate')
function positive(n) {
return n > 0
}
var negative = negate(positive)
negative(-50) === true
Usage
negate(fn)
Returns the negated version of fn
.
License
MIT, see LICENSE.md for details.
1.0.0
10 years ago