JavaScript
fromSmashing Magazine
4 weeks agoJavaScript For Everyone: Iterators - Smashing Magazine
Iterables implement a [Symbol.iterator]() method to produce iterators; iterators follow the iterator protocol and allow sequential element access (usable by for...of).