Loading...
By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.
Implement promiseAll(promises) function that works like native Promise.all().
promiseAll(promises)
Promise.all()
Requirements:
const results = await promiseAll([ Promise.resolve(1), Promise.resolve(2), Promise.resolve(3) ]); // results = [1, 2, 3]
Run your code to see results.
Click the Run button above