Javascript ES6 — Iterables and Iterators
Published in
3 min readJun 2, 2018
Iterables
The iterable is a interface that specifies that an object can be accessible if it implements a method who is key is [symbol.iterator].
Some of the built-in data structure that use iterable are :
- Arrays
- Strings
- Maps
- Sets etc.