1.0.0 • Published 10 years ago

flip-args v1.0.0

Weekly downloads
5
License
-
Repository
github
Last release
10 years ago

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