JavaScript Jabber

JSJ 468: The case for JavaScript iterators, part 1

January 26th, 2021  •  1 hr 13 mins  •  Download (84.2 MB)  •  Link with Timestamp

RSS Feed

Iterators and generators were introduced into JavaScript way back in 2015, yet they remain an underused and often misunderstood features of the language. In this episode Dan describes the purpose of iterators, how they're implemented in JavaScript, and why you're using them even if you aren't aware that you are, via the spread operator for example. The panel then discusses the pros and cons of iterators in JavaScript, and why most devs don't explicitly use them.