What Is promise.all in JavaScript? An Ultimate Guide
Briefly

Promise.all() waits for all promises in the iterable to settle—either all resolve or at least one rejects. It returns a single promise that fulfills with an array of results in order of the promises in the iterable.
If any promise in the iterable is rejected, the entire Promise.all() is rejected with the reason of the first rejected promise. Subsequent rejections are ignored.
Read at Simplilearn.com
[
|
]