Nero Punished Miscreants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    invert-kvpublic

    invert-kv Build Status

    Invert the key/value of an object. Example: {foo: 'bar'}{bar: 'foo'}

    Install

    $ npm install invert-kv
    

    Usage

    const invertKv = require('invert-kv');
     
    invertKv({foo: 'bar', unicorn: 'rainbow'});
    //=> {bar: 'foo', rainbow: 'unicorn'}

    License

    MIT © Sindre Sorhus

    install

    npm i invert-kv

    Downloadsweekly downloads

    3,467,502

    version

    2.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar