Repository URL to install this package:
|
Version:
1.16.0 ▾
|
| .. |
| index.js |
| package.json |
| readme.md |
Invert the key/value of an object. Example:
{foo: 'bar'}→{bar: 'foo'}
$ npm install --save invert-kv
var invertKv = require('invert-kv'); invertKv({foo: 'bar', unicorn: 'rainbow'}); //=> {bar: 'foo', rainbow: 'unicorn'}
MIT © Sindre Sorhus