Returns a new function much like the supplied one, except that the first two arguments' order is reversed.
const neg = (a, b) => a - b flip(neg)(3, 5); //=> 2
The function to invoke with its first two parameters reversed.
The result of invoking fn with its first two parameters' order reversed.
fn
Generated using TypeDoc
Returns a new function much like the supplied one, except that the first two arguments' order is reversed.