IK
Interview Knowledge Book
Topics
Practice
Examples
Playground
RU
browser
Promise.all fail-fast rejection
Run a small Promise.all example to see how the aggregate promise rejects.
index.js
Promise.all([Promise.resolve('ok'), Promise.reject(new Error('bad'))]) .then(() => console.log('done')) .catch((error) => console.log(error.message));
Run
Stop
Reset