vlas-ilya / flip-args

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 100.0%