Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rodinia
· 7y ago · 0 comments
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...
Comments
[–]
dlbucci
7y ago
I agree! They are more useful! That's why I wish objects behaved that way to begin with!