3 ms·
This (anything can be a key) was eventually added with the Map class. They're an iterable type too, so they're much more useful than Objects imo. https://devel
by rodinia 7y ago
This (anything can be a key) was eventually added with the Map class. They're an iterable type too, so they're much more useful than Objects imo.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- dlbucci 7y agoI agree! They are more useful! That's why I wish objects behaved that way to begin with!