Get unlimited public & private packages + team-based management with npm Teams.Learn more »

just-flip

1.1.0 • Public • Published

just-flip-it

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

Try it now

import flip from 'just-flip';
 
flip(console.log)(1, 2, 3) // 2, 1, 3
 
import map from 'just-map-object';
import partial from 'just-partial';
 
const numbers = {x: 5, y: 10};
const flippedMap = flip(map);
const double = partial(flippedMap, (undefined, number) => number * 2);
double(numbers) // {x: 10, y: 20];

Install

npm i just-flip

DownloadsWeekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

2.43 kB

Total Files

4

Last publish

Collaborators

  • avatar