When you have an async iterable — a ReadableStream, a generator that fetches paginated results, a database cursor — and you need its values in a plain array, you reach for a loop.

const results = [];

for await (const item of asyncSource) {

results.push(item);

}