Why use an ES6 Map instead of a plain javascript object?
Anything can be used as a key in a map. Maps are ordered, and that allows for iteration. Combining 1 and 2, when you iterate over a map, you’ll get a useful array of key-value pairs! Check out the map.prototype.forEach() documentation. Source: Another good question/answer exchange. Worth marking this one as a duplicate. Update: Adding … Read more