javascriot object to new Map code example
Example 1: js map on object
import { map } from "ramda"
const double = x => x * 2;
const mappedObject = map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
Example 2: object to map javascript
const map = new Map(Object.entries({foo: 'bar'}));
map.get('foo'); // 'bar'