Skip to main content
Version: 3.13.0

Symbol.asyncIterator

The Symbol.asyncIterator well-known symbol specifies the default async iterator for an object. If this property is set on an object, it is an async iterable and can be used in a for await...of loop.

Value

The well-known symbol Symbol.asyncIterator.

Description

The Symbol.asyncIterator symbol is a builtin symbol that is used to access an object's Symbol.asyncIterator method. In order for an object to be async iterable, it must have a Symbol.asyncIterator key.