invert-key-value
v1.0.0
Published
Invert key-value pairs of an object
Downloads
1
Maintainers
Readme
invert-key-value
Invert key-value pairs of an object
Install
$ npm install invert-kv
Usage
import invertKeyValue from 'invert-key-value';
invertKeyValue({ 1: "2", 3: "4" });
> { '2': '1', '4': '3' }