OP probably means he would like Promise.all to return an object as well, if an object if given
It's possible to hack an object to be iterable, but Promise.all already return an array unfortunately On Sun, Oct 13, 2019 at 7:16 PM Boris Zbarsky <bzbar...@mit.edu> wrote: > On 10/12/19 12:52 AM, Jacob Bloom wrote: > > const responses = await Promise.all(requests); > > As opposed to: > > const responses = await Primise.all(requests.values()); > > which works right now? > > -Boris > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss