Standard built-ins

Symbol.asyncIterator

Try the free JavaScript compiler

Key for the method supplying an asynchronous iterator whose next results are delivered through promises.

Formal Syntax & Structure

javascript syntaxjavascript
Symbol.asyncIterator

Return Value

symbol

The predefined protocol key.

Working Example

Example Snippetjavascript
async function* g(){yield 3;}console.log(typeof g()[Symbol.asyncIterator]);
JavaScript Reference