admin_vue/11-前端模块化开发Webpack(Node.js基础)/04-webpack_Loader使用/node_modules/invert-kv
3056762376@qq.com 37ffd941b0 changes 2022-11-20 18:09:09 +08:00
..
index.js changes 2022-11-20 18:09:09 +08:00
package.json changes 2022-11-20 18:09:09 +08:00
readme.md changes 2022-11-20 18:09:09 +08:00

readme.md

invert-kv Build Status

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

Install

$ npm install --save invert-kv

Usage

var invertKv = require('invert-kv');

invertKv({foo: 'bar', unicorn: 'rainbow'});
//=> {bar: 'foo', rainbow: 'unicorn'}

License

MIT © Sindre Sorhus