← You're collecting async iterable results with a for-await loop. `Array.fromAsync` does it in one call.
Playground
Array.fromAsync — interactive playground
preview
Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.