You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exciting iterator-helpers proposal has a similar toArray method that overlaps with this. (toArray already overlaps with Array.from too.) See #1.
My preference is to keep both toArray and Array.fromAsync (Array.from being a fait accompli). But we can explore this more before both proposals advance further. CC: @codehag
The text was updated successfully, but these errors were encountered:
I think both should exist, too. One reason is that they’re not quite equivalent: Array.fromAsync will work with any object implementing the async iterable contract regardless of whether it inherits from AsyncIteratorPrototype.
The exciting iterator-helpers proposal has a similar
toArray
method that overlaps with this. (toArray
already overlaps withArray.from
too.) See #1.My preference is to keep both
toArray
andArray.fromAsync
(Array.from
being a fait accompli). But we can explore this more before both proposals advance further. CC: @codehagThe text was updated successfully, but these errors were encountered: