In this Hasty Treat, Scott and Wes talk about seven new JavaScript proposals — what they do, where they’re at, and how you might use them.
Deque’s axe DevTools makes accessibility testing easy and doesn’t require special expertise. Find and fix issues while you code. Get started with a free trial of axe DevTools Pro at deque.com/syntax. No credit card needed.
LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
03:32 - Seven new JavaScript proposals
06:25 - JSON Modules
09:55 - Array Find From Last
11:40 - Async Do
Promise.all([ async do { let result = await fetch('thing A'); await result.json(); }, async do { let result = await fetch('thing B'); await result.json(); }, ]).then(([a, b]) => console.log([a, b]));
14:33 - Change Array By Copy
17:48 - Temporal
18:35 - As Patterns
20:47 - Pattern Matching
{props => match (props) { when ({ loading }) { ; } when ({ error }) { ; } when ({ data }) { ; } }}
📆 2021-06-21 15:00 / ⌛ 00:17:26
📆 2021-06-16 15:00 / ⌛ 00:59:51
📆 2021-06-14 15:00 / ⌛ 00:24:22