1.0.0 • Published 9 years ago

fj-filpall v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

fj-filpall

Build Status npm version

Given a function, returns a new function with all it's arguments flipped.

Installation

npm install fj-filpall --save

Usage

var filpall = require('fj-filpall');

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

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

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