When should we choose map over object literal?
The map is a collection of key-value pairs like Objects.
But the main difference is map allows keys of any type(primitive/non-primitive).
When we try to store an object as a key in Object, it converts all keys to strings and the resulted value would ...
jkpulipati.hashnode.dev2 min read