hardJavaScript

Implement Promise.all

Implement your own version of Promise.all. It should take an array of promises and return a single promise that resolves when all input promises resolve, or rejects if any promise fails.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: [Promise.resolve(1), Promise.resolve(2)]

Expected: [1,2]