Hacker News new | ask | show | jobs
by rodinia 2422 days 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/Refe...

1 comments

I agree! They are more useful! That's why I wish objects behaved that way to begin with!