invert-kv
Advanced tools
Weekly downloads
Readme
Invert the key/value of an object. Example:
{foo: 'bar'}
→{bar: 'foo'}
$ npm install invert-kv
import invertKeyValue from 'invert-kv';
invertKeyValue({foo: 'bar', '🦄': '🌈'});
//=> {bar: 'foo', '🌈': '🦄'}
FAQs
Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`
The npm package invert-kv receives a total of 5,585,925 weekly downloads. As such, invert-kv popularity was classified as popular.
We found that invert-kv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.