object-swap-key-val

1.0.0 • Public • Published

object-swap-key-val Build Status

Usage

$ npm install object-swap-key-val

var swapKeyVal = require('object-swap-key-val');

console.log(swapKeyVal({foo: 'bar', bob: 'bobette'})); // {bar: 'foo', bobette: 'bob'}

This assumes you have a simple object with strings as values. If you want it to handle more scenarios add an issue or even better, send a PR.

/object-swap-key-val/

    Package Sidebar

    Install

    npm i object-swap-key-val

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • gabigrin