|
пре 2 месеци | |
---|---|---|
.. | ||
index.d.ts | пре 2 месеци | |
index.js | пре 2 месеци | |
license | пре 2 месеци | |
package.json | пре 2 месеци | |
readme.md | пре 2 месеци |
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', '🌈': '🦄'}