npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fj-filpall

1.0.0

@hemanth

npmHomeRepoSnykSocket
Downloads:16
$ npm install fj-filpall
DailyWeeklyMonthlyYearly

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]