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

just-flip-object

1.1.0 • Public • Published

just-flip-object

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

import flip from 'just-flip-object';
 
// flip the key and value
flip({a: 'x', b: 'y', c: 'z'}); // {x: 'a', y: 'b', z: 'c'}
flip({a: 1, b: 2, c: 3}); // {'1': 'a', '2': 'b', '3': 'c'}
flip({a: false, b: true}); // {false: 'a', true: 'b'}

Install

npm i just-flip-object

DownloadsWeekly Downloads

40

Version

1.1.0

License

MIT

Unpacked Size

2.37 kB

Total Files

4

Last publish

Collaborators

  • avatar