ES6 Map() Object

Neha Sharma
1 min readJan 23, 2019

--

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
Neha Sharma

Written by Neha Sharma

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

No responses yet