Standard built-ins
Symbol.asyncIterator
Key for the method supplying an asynchronous iterator whose next results are delivered through promises.
Formal Syntax & Structure
javascript syntaxjavascript
Symbol.asyncIteratorReturn Value
symbol
The predefined protocol key.
Working Example
Example Snippetjavascript
async function* g(){yield 3;}console.log(typeof g()[Symbol.asyncIterator]);