tree: 185b776b435cc73e22845f3f8c4a27a0f7283472 [path history] [tgz]
  1. index.js
  2. package.json
  3. 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 --save invert-kv

Usage

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

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

License

MIT © Sindre Sorhus