Chapter 4
Iterators and Symbols

Iterating over a collection of values is commonplace, yet the code to loop through and process elements has been cumbersome in the past. In this chapter you’ll learn to use the new enhanced loop. This improvement to the language reduces noise, making iteration more fluent and pleasant to maintain.

We will then look at Symbol, the new primitive type added to the language, and see how it fills the void of interfaces in JavaScript. Finally, we’ll work with generators and see how they help to create infinite sequences.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.136.235