flip-args
v1.0.0
Published
Flip arguments of function
Downloads
4
Readme
flip-args.js
Flip arguments of function
Usage
var flip = require('flip')
var testFunc = (a1, a2) => a1 - a2;
var flipTestFunc = flip(testFunc);
console.log(flipTestFunc(2, 3) == testFunc(3, 2)); // true