how to convert map to object in javascript code example
Example: object to map javascript
const map = new Map(Object.entries({foo: 'bar'}));
map.get('foo'); // 'bar'
const map = new Map(Object.entries({foo: 'bar'}));
map.get('foo'); // 'bar'