tree: 4043f959fb5eaec70653d13f832bdcdb2ac37e3a
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/invert-kv/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