December 2017
Beginner
372 pages
10h 32m
English
Iterators are found all over the place in TypeScript and JavaScript. Iterators are the reason we can access values in a sequential manner. Iterators allow us to use functions such as for...of and for...in to access the data in an array.
Some common iterators in TypeScript are arrays, maps, sets, and strings, which allow us to access elements in a linear fashion. For any object to be iteratable, they need to have a Symbol.iterator property. The Symbol.iterator property is a function with methods that allow us to iterate over the elements of an object.
Read now
Unlock full access