JSJ 468: The case for JavaScript iterators, part 1

Published: Jan. 26, 2021, 11 a.m.

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.

Panel

  • Aimee Knight
  • AJ O’Neal
  • Dan Shappir

Sponsors

Links

Picks