June 2020
Intermediate to advanced
352 pages
8h 54m
English
Topics in This Chapter
12.7 Generators and Asynchronous Processing
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 ...