Loading problem…
Implement your own version of Promise.all method. The Promise.all method takes an iterable of promises and returns a single promise that resolves when all of the input promises have resolved, or rejects with the reason of the first promise that rejects.