Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Array.fromAsync()

2 tags 1 category

The Array.fromAsync() static method creates a new, shallow-copied Array instance from an async iterable, iterable, or array-like object.

async iterable objects (objects such as ReadableStream and AsyncGenerator); or, if the object is not async iterable, iterable objects (objects such as Map and Set); or, if the object is not iterable, array-like objects (objects with a length property and indexed elements).

Array.fromAsync() iterates the async iterable in a fashion very similar to for await…of. Array.fromAsync(items) is generally equivalent to the following code, if items is an async iterable or sync iterable:

Syntax example: Array.fromAsync(items)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…