|
пре 3 недеља | |
---|---|---|
.. | ||
index.d.ts | пре 3 недеља | |
index.js | пре 3 недеља | |
license | пре 3 недеља | |
package.json | пре 3 недеља | |
readme.md | пре 3 недеља |
Invert the key/value of an object. Example:
{foo: 'bar'}
→{bar: 'foo'}
$ npm install invert-kv
const invertKeyValue = require('invert-kv');
invertKeyValue({foo: 'bar', '🦄': '🌈'});
//=> {bar: 'foo', '🌈': '🦄'}