Web features explorer

Iterators and the for...of loop

Widely available since 2018-01-29
Tags: javascript Groups: JavaScript > Iterators

The for...of loop operates on a sequence of values sourced from an iterable object, such as arrays, array-like objects, DOM collections, iterators, generators, and user-defined iterables. All built-in iterators inherit from the Iterator class.

Learning resources on MDN

Browser support