Javascript ES6: Map vs. Object

Introduction to Maps with Javascript

Objects are one of Javascript’s data types. They are used to store various keyed collections and more complex entities. With this capability, they are probably one of the most important data types as they form modern building blocks. They are more complex because they can contain any combination of primitive data types, such as Number, String, Boolean, etc, as well as other reference data types (like other objects). Objects can be…