linx-simulator2/node_modules/invert-kv
2019-09-18 11:11:16 +03:00
..
index.js Simulator first commit 2019-09-18 11:11:16 +03:00
package.json Simulator first commit 2019-09-18 11:11:16 +03:00
readme.md Simulator first commit 2019-09-18 11:11:16 +03:00

invert-kv Build Status

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

Install

$ npm install --save invert-kv

Usage

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

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

License

MIT © Sindre Sorhus