re: Maps in ES6 - A Quick Guide VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I agree, would've been nice with key, value. But forEach on arrays is val, key - so I can see why they did it that way. I don't fully understand w...
 
const map = new Map();
map.set('foo', 'bar');

// none of these are defined as entries is an
// iterator not a list
map.entries.map
map.entries.forEach
map.entries.filter
code of conduct - report abuse