Why isn't `Promise.all()` overloaded?

Jacob Pratt jhprattdev at gmail.com
Fri Aug 10 21:30:38 UTC 2018


This is potentially a very simple question, `Promise.all()` takes a single
iterable as a parameter. Is there any particularly reason it wasn't
overloaded to allow passing multiple parameters (and use `...arguments`)?
Of course, the only difference is the creation of an array, but it *is* an
array that doesn't need to be created.

Jacob Pratt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180810/47ea1d59/attachment-0001.html>


More information about the es-discuss mailing list