Standard built-ins
Symbol.iterator
Key for the method that returns a synchronous iterator. A self-iterable iterator returns itself from this method.
Formal Syntax & Structure
javascript syntaxjavascript
Symbol.iteratorReturn Value
symbol
The predefined protocol key.
Working Example
Example Snippetjavascript
const it=[1][Symbol.iterator]();console.log(it.next().value);