r3-v2/node_modules/invert-kv
Theunis J. Botha 5f5bbac56e initial comit 2020-02-27 15:24:35 +01:00
..
index.js initial comit 2020-02-27 15:24:35 +01:00
license initial comit 2020-02-27 15:24:35 +01:00
package.json initial comit 2020-02-27 15:24:35 +01:00
readme.md initial comit 2020-02-27 15:24:35 +01:00

readme.md

invert-kv Build Status

Invert the key/value of an object. Example: {foo: 'bar'}{bar: 'foo'}

Install

$ npm install invert-kv

Usage

const invertKv = require('invert-kv');

invertKv({foo: 'bar', unicorn: 'rainbow'});
//=> {bar: 'foo', rainbow: 'unicorn'}

License

MIT © Sindre Sorhus