JSJ 469: The Case for JavaScript Iterators and Generators, part 2
JavaScript Jabber
English - February 02, 2021 11:00 - 1 hour - 71.8 MB - ★★★★ - 56 ratingsHow To Education Technology javascript programming browser internet web programmer developer framework front end node Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
This is the follow on to the episode first recorded regarding JavaScripts iterators and generators. Dan takes the lead and picks up from last time. The panel discusses how JavaScript uses and implements iterators and where people are likely to see them. Then they dive into generators and briefly discuss the concept and their uses.CODE:
x = {[Symbol.iterator]() {let i = 0;return {next: () => ({done: i >= 10,value: i++})};}};
for (const v of x) console.log(v);
console.log([…x]);
console.log(…x);
function* g() {for (let i = 0; i < 10; ++i) yield i;}
Panel
AJ O'Neal
Charles Wood
Dan Shappir
Sponsors
Dexecure
Raygun | Click here to get started on your free 14-day trial
Next Level Mastermind
Links
A Promise of a Bright Future With Async Iterators, Generators, and Pipes, Part 1
Devchat.tv | JSJ 437: Inside the Brave Browser with Jonathan Sampson
Flint 4k
Picks
AJ- Charles Wood
AJ- 12 Rules for Life Poster
AJ- Brave Browser
AJ- Need for Speed Hot Pursuit (Remastered)
Charles- Devchat.tv | The Dev Rev
Charles- Most Valuable Developer
Charles- Elgato Cam Link 4K
Charles- Podcast Playbook
Charles- The Hero with a Thousand Faces by Joseph Campbell
Dan- Netflix Series: The Queen's Gambit
Dan- Automating audits with AutoWebPerf
Sponsored By:
Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.
Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB
Our Sponsors:
* Check out Factor: http://factor75.com
Support this podcast at — https://redcircle.com/javascript-jabber/donations
Privacy & Opt-Out: https://redcircle.com/privacy