Array.fromAsync allows you to get an array from an asynchronously generated collection.
Pretty neat utility method that is in stage 3 as of right now!
Read more ๐ github.com/tc39/proposal-
Give it a try ๐ stackblitz.com/edit/js-plq9gs
Conversation
Replying to
How is it different to Array.from ? Will response be converted to Promise first ? Great tip, thanks for sharing .
1
2
Replying to
Here the values a produced asynchronously (i.e traversable with โfor asyncโ). Array.from expects an iterable collection (i.e. traversable with โfor ofโ)
2


