Iteration protocols in JavaScript

iteration protocols

No matter on which level you are as a JavaScript developer, you have used iterators and iterables so far, even though you may haven’t been aware of that. But what exactly they are and what’s their purpose?   Iterables Each object which implements @@iterator method (expressed via [Symbol.iterator]) is an iterable. It serves as a … Read more