Map vs Object in JavaScript
According to MDN: A Map object can iterate its elements in insertion order – a for..of loop will return an array of [key, value] for each iteration. and Objects are similar to Maps in that both let you set keys to values, retrieve those values, delete keys, and detect whether something is stored at a … Read more