Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

JavaScript Maps (new Map()) are more performant, ergonomic, and overall useful than you might think. You may want to consider using them more often than you likely are. Full video is now out!

203,263 görüntüleme • 3 yıl önce •via X (Twitter)

10 Yorum

Steve (Builder.io) profil fotoğrafı
Steve (Builder.io)3 yıl önce

You know the drill - more good stuff you can do with Maps and Sets in my full blog post:

Jamie Kyle is on 🦋 profil fotoğrafı
Jamie Kyle is on 🦋3 yıl önce

It's a good recommendation, but you don't need to use: p) You can use: Object.hasOwn(o, p)

Anonymous Sentinelæ profil fotoğrafı
Anonymous Sentinelæ3 yıl önce

This kind of tips are really useful, it's a shame that people waste time with TS and React that have extremely bad performance compared to JS, for no benefit other than the lies they sell on propaganda to profit over naive devs.

Random profil fotoğrafı
Random3 yıl önce

Please check this

Steve (Builder.io) profil fotoğrafı
Steve (Builder.io)3 yıl önce

Look at the benchmark links in the blog post, there are multiple. You are reusing keys and not generating unique keys

Sajad profil fotoğrafı
Sajad3 yıl önce

Sweet man an incredible guide about Sets and Map 🙌🏻👌🏻

Evert Junior profil fotoğrafı
Evert Junior3 yıl önce

Your explanations are so good, thank you.

niconiahi profil fotoğrafı
niconiahi3 yıl önce

great content man! appreciate it

Sam Holguin profil fotoğrafı
Sam Holguin3 yıl önce

Shamefully never used Maps or Sets 🤷🏽‍♂️

LegiN 🔴⚫️ profil fotoğrafı
LegiN 🔴⚫️3 yıl önce

When would we use objects ideally then?

Benzer Videolar