ES6 Map() Object

Neha Sharma
Jan 23 · 1 min read

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

Neha Sharma

Written by

Tech Lead; Brain behind JSLovers, Tech Speaker; ❤ Calligraphy and Chai. https://twitter.com/hellonehha; My Dev Journey: https://www.instagram.com/devgirllife/