caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
index.js | 8 months ago | |
package.json | 8 months ago | |
readme.md | 8 months ago |
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