689: You Should Be Using JavaScript Maps & Sets
Update: 2023-11-06
Description
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 ">00:26 Welcome
- 01:34 ">01:34 Syntax Brought to you by Sentry
- 01:54 ">01:54 What makes Maps a spicy buffalo object?
- 07:46 ">07:46 API of Map
- 08:51 ">08:51 Looping over items in a Map
- 09:27 ">09:27 Can you change the size of a map after it’s been created?
- 10:07 ">10:07 Can you access properties directly?
- 12:13 ">12:13 Where have we used a map as a cache?
- 13:32 ">13:32 What makes a set an array honey garlic array?
- 17:28 ">17:28 When should you be using sets instead of an array?
- Proposed Highlight API is built on Sets
- 21:47 ">21:47 Can you spread sets like an array?
- 22:40 ">22:40 Weak versions of map and set
- WeakMap and Garbage collection
Hit us up on Socials!
Syntax: X Instagram Tiktok LinkedIn Threads
Comments
Top Podcasts
The Best New Comedy Podcast Right Now – June 2024The Best News Podcast Right Now – June 2024The Best New Business Podcast Right Now – June 2024The Best New Sports Podcast Right Now – June 2024The Best New True Crime Podcast Right Now – June 2024The Best New Joe Rogan Experience Podcast Right Now – June 20The Best New Dan Bongino Show Podcast Right Now – June 20The Best New Mark Levin Podcast – June 2024
In Channel