Skip to content

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

License

Notifications You must be signed in to change notification settings

fp-js/fj-flipAll

Repository files navigation

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]

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published