#iteration-protocols

[ follow ]
JavaScript
fromSmashing Magazine
1 week ago

JavaScript 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).
[ Load more ]