学习?学个屁 06c63c15cc 初始化提交 3 weeks ago
..
index.d.ts 06c63c15cc 初始化提交 3 weeks ago
index.js 06c63c15cc 初始化提交 3 weeks ago
license 06c63c15cc 初始化提交 3 weeks ago
package.json 06c63c15cc 初始化提交 3 weeks ago
readme.md 06c63c15cc 初始化提交 3 weeks ago

readme.md

invert-kv Build Status

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

Install

$ npm install invert-kv

Usage

const invertKeyValue = require('invert-kv');

invertKeyValue({foo: 'bar', '🦄': '🌈'});
//=> {bar: 'foo', '🌈': '🦄'}

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.