Share your code. Components are building blocks, you are the architect.

utils/complement
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Takes a function `f` and returns a function `g` such that if called with the same arguments

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/complement in your project
npm i @bit/bit.ramda.utils.complement
Copied

complement (f:Function) : Function

Takes a function f and returns a function g such that if called with the same arguments when f returns a “truthy” value, g returns false and when f returns a “falsy” value g returns true.

R.complement may be applied to any functor

Example

var isNotNil = R.complement(R.isNil);
     isNil(null); //=> true
     isNotNil(null); //=> false
     isNil(7); //=> false
     isNotNil(7); //=> true

Argument

f: Function

Returns

Function