Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Steve (Builder.io)
Steve (Builder.io)3 лет назад

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

Фото профиля Jamie Kyle is on 🦋
Jamie Kyle is on 🦋3 лет назад

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

Фото профиля Anonymous Sentinelæ
Anonymous Sentinelæ3 лет назад

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
Random3 лет назад

Please check this

Фото профиля Steve (Builder.io)
Steve (Builder.io)3 лет назад

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

Фото профиля Sajad
Sajad3 лет назад

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

Фото профиля Evert Junior
Evert Junior3 лет назад

Your explanations are so good, thank you.

Фото профиля niconiahi
niconiahi3 лет назад

great content man! appreciate it

Фото профиля Sam Holguin
Sam Holguin3 лет назад

Shamefully never used Maps or Sets 🤷🏽‍♂️

Фото профиля LegiN 🔴⚫️
LegiN 🔴⚫️3 лет назад

When would we use objects ideally then?

Похожие видео