JavaScript
fromSmashing Magazine
1 week 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).