Glossary Term
Array.fromAsync()
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…
