object-to-map
v2.0.1
Published
Convert object to ES6 Map
Downloads
112
Readme
object-to-map
Convert object to ES6 Map.
Installation
$ npm install --save object-to-map
Usage
const objectToMap = require('object-to-map');
const obj = {
a: 1,
b: 2
};
const map = objectToMap(obj);
map.get('a');
//=> 1
map.get('b');
//=> 2
Related
License
MIT © Vadim Demedes