Why isn't `Promise.all()` overloaded?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss