ES6 Map() Object
In Javascript, we have mainly two types to store data for complex data or mixed type of data — Array and Objects. Whereas in the rest of the programming language we have many more data structures.
Objects are the most flexible and useful when you want to store the data in a key/value pair. The only issue is that the key can be only String. Though you can convert the numbers later by using helper methods. But, what if you can save any data types as a key? Would that not be awesome?
https://nehha-sharma.blogspot.com/2019/01/es6-map-object.html