Skip to Content
Modern JavaScript for the Impatient
book

Modern JavaScript for the Impatient

by Cay S. Horstmann
June 2020
Intermediate to advanced
352 pages
8h 54m
English
Addison-Wesley Professional
Content preview from Modern JavaScript for the Impatient

Chapter 12. Iterators and Generators

Images

In this short chapter, you will learn how to implement iterators that can be used in the for of loop and array spreads. You will be able to work with iterators in your own code.

Implementing an iterator can be a bit tedious, but generators greatly simplify this task. A generator is a function that can yield multiple ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern JavaScript for the Impatient

Modern JavaScript for the Impatient

Cay S. Horstmann
Node.js Design Patterns - Third Edition

Node.js Design Patterns - Third Edition

Mario Casciaro, Luciano Mammino

Publisher Resources

ISBN: 9780136502166