medium - accepted / - tried
The Promise.all() method takes an iterable of promises as an input, and returns a single Promise that resolves to an array of the results of the input promises
source - MDN
Could you write your own
all() ? which should works the same as
Do not use Promise.all() directly, it is not helping
Let's try to solve this problem within 10 mintues.