topic : understanding difference between map and object in Javascript
read this
Objects vs. MapsObject is similar to Map—both let you set keys to values, retrieve those values, delete keys, and detect whether something is stored at a key. For this reason (and because there were no built-in alternatives), Object has been used as Map historically.
topic : understanding difference between map and object in Javascript
read this
reference