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

Made by Antonio Ramirez

fj-flip

1.0.1

@hemanth

npmHomeRepoSnykSocket
Downloads:0
$ npm install fj-flip
DailyWeeklyMonthlyYearly

fj-flip

Build Status npm version

Given a function, returns a new function with the first two arguments flipped.

Installation

npm install fj-flip --save

Usage

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

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

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

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