Skip to content

Glossary: JavaScript Beyond the Basics

Iterable

Also written: iteration protocol

A value that `for...of`, spread and destructuring can loop over, because it has a `Symbol.iterator` method that provides an iterator. Arrays, strings, maps, sets and generators are iterable.

Where the book teaches it

Related terms

IteratorSymbolGenerator