Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 543 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 543 Bytes

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]