Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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,270 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Steve (Builder.io)
Steve (Builder.io)vor 3 Jahren

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

Profilbild von Jamie Kyle is on 🦋
Jamie Kyle is on 🦋vor 3 Jahren

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

Profilbild von Anonymous Sentinelæ
Anonymous Sentinelævor 3 Jahren

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.

Profilbild von Random
Randomvor 3 Jahren

Please check this

Profilbild von Steve (Builder.io)
Steve (Builder.io)vor 3 Jahren

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

Profilbild von Sajad
Sajadvor 3 Jahren

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

Profilbild von Evert Junior
Evert Juniorvor 3 Jahren

Your explanations are so good, thank you.

Profilbild von niconiahi
niconiahivor 3 Jahren

great content man! appreciate it

Profilbild von Sam Holguin
Sam Holguinvor 3 Jahren

Shamefully never used Maps or Sets 🤷🏽‍♂️

Profilbild von LegiN 🔴⚫️
LegiN 🔴⚫️vor 3 Jahren

When would we use objects ideally then?

Ähnliche Videos