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