Загрузка видео...
Не удалось загрузить видео
JavaScript Maps are super underrated. Keys of a map can be anything - including an object! Here I'm using the new groupBy proposed API to group array items into a Map or an Object →
240,399 просмотров • 3 лет назад •via X (Twitter)
Комментарии: 11

WeakMaps ftw as well!

Nothing better than something that cleans up

I've been using the JavaScript Maps a lot, thanks for the teachings 💯

big fan!

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.

I agree, I wonder if we will ever get that in JS

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

except that it lacks a hashing function hook

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

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

This is it - I made it for twitter
