Eric Foster d5378345de connection between front end and database | 6 лет назад | |
---|---|---|
.. | ||
index.js | 6 лет назад | |
package.json | 6 лет назад | |
readme.md | 6 лет назад |
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