@milindsoorya
You have summed the promise nicely for those looking to get started. For Promise.all, you missed to mention that it will reject, the moment any promise returns failure.
Alternatively, Promise.allSettled lets all the promises run (whether resolve or reject), and finally resolves with the status of each promise as array.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
@milindsoorya You have summed the promise nicely for those looking to get started. For Promise.all, you missed to mention that it will reject, the moment any promise returns failure.
Alternatively, Promise.allSettled lets all the promises run (whether resolve or reject), and finally resolves with the status of each promise as array.