You are on page 1of 2

What‘s an “Iterable”?

An Iterable

Technically To us humans:

Objects that implement the


“iterable” protocol and have Objects where you can use the
an @@iterator method (i.e. for-of loop.
Symbol.iterator)

Not every iterable is an array! Other iterables are (for example):


NodeList, String, Map, Set
What‘s an “Array-like Object”?

An Array-like Object

Technically To us humans:

Objects that have a length


property and use indexes to See technical explanation
access items

Not every array-like object is an array! Other array-likes are (for


example): NodeList, String

You might also like