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

utils/flip
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns a new function much like the supplied one, except that the first two

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/flip in your project
npm i @bit/bit.ramda.utils.flip
Copied

flip (fn:Function) : *

Returns a new function much like the supplied one, except that the first two arguments’ order is reversed.

Example

var mergeThree = (a, b, c) => [].concat(a, b, c);

     mergeThree(1, 2, 3); //=> [1, 2, 3]

     R.flip(mergeThree)(1, 2, 3); //=> [2, 1, 3]

Argument

fn: Function

The function to invoke with its first two parameters reversed.

Returns

*

The result of invoking `fn` with its first two parameters' order reversed.