Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 7 éve | |
---|---|---|
.. | ||
index.js | 7 éve | |
package.json | 7 éve | |
readme.md | 7 éve |
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