JavaScript Maps are super underrated.
@wesbos448K followers
240,422 views
11 Comments
Comments from the original post on X (Twitter)

@nickytonline
WeakMaps ftw as well!
5 likes

@wesbos
Nothing better than something that cleans up
5 likes

@pauloreiss7
I've been using the JavaScript Maps a lot, thanks for the teachings 💯
4 likes

@wesbos
big fan!
2 likes

@zayenz
Maps are great, but I really miss structural equality for the keys when they are objects, as that is so much more useful. Especially if the key is computed at lookup.
4 likes

@wesbos
I agree, I wonder if we will ever get that in JS
1 like

@WebDevCodi
YT comment: You should use a for loop for performance. Wes: I'm iterating over 3 things brotha. 🤣 This was hilarious
2 likes

@willscl
except that it lacks a hashing function hook
2 likes

@wesbos
@crudspecialist What would we use that for? Not snark, curious!

@GRKARTHIKGR
@wesbos where can we find this video or podcasts ? Really interested in it
1 like

@wesbos
This is it - I made it for twitter
1 like