Iterators are a major new feature in ES6, and are used extensively already. Iterators are used for lazy evaluation, or in cases where describing an infinite sequence is needed. Soon we will be looking at Generators, and it helps to have a grasp of iterators before we do so. In fact, Iterators are kind of a prerequisite for Generators, Promises, Sets, and Maps. Let’s look at the basics of Iterators here, and get up to speed with them.…
The post Iterators In ES6 appeared first on Vegibit.
This post first appeared on Vegibit - Tech - Dev - Cloud - Design, please read the originial post: here