
technologyNov 6, 202328:17pending
689: You Should Be Using JavaScript Maps & Sets
About this episode
In this episode of Syntax, Wes and Scott talk about why you should be using JavaScript maps sets, whether you can access them directly, what makes them great, and what weak versions of both are.
Show Notes 00:26 Welcome
01:34 Syntax Brought to you by Sentry
01:54 What makes Maps a spicy buffalo object?
07:46 API of Map
08:51 Looping over items in a Map
09:27 Can you change the size of a map after it’s been created?
10:07 Can you access properties directly?
12:13 Where have we used a map as a cache?
13:32 What makes a set an array honey garlic array?
17:28 When should you be using sets instead of an array?
Proposed Highlight API is built on Sets
21:47 Can you spread sets like an array?
22:40 Weak versions of map and set
WeakMap and Garbage collection
Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads
Scott: X Instagram Tiktok LinkedIn Threads
Get every episode summarized
Each time Syntax - Tasty Web Development Treats publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
No transcript yet
This episode has not been transcribed. Request it and it moves to the front of the queue.
More episodes
More from Syntax - Tasty Web Development Treats

995: Next.js Vendor Lock-in No More
Syntax - Tasty Web Development Treats
Apr 13, 20261:04:18failed

994: AI Sucks At CSS
Syntax - Tasty Web Development Treats
Apr 8, 20261:00:16failed

993: It’s Been A Hell Of Week
Syntax - Tasty Web Development Treats
Apr 6, 202638:12failed

992: Migrating Legacy Code Just Got Easier
Syntax - Tasty Web Development Treats
Apr 1, 202629:07failed