Map and Set in JavaScript
Map
Map is a special JavaScript collection used to store data in key → value pairs.
It is similar to an object, but more flexible.
Main advantage:Map allows keys of any type.
Declaring Collections
co
tech-log.hashnode.dev3 min read