re: Promise.all (ES2015) vs Promise.allSettled (ES2020). What's changed? πŸ€” VIEW POST

FULL DISCUSSION
 

Thanks for sharing!

As far as I know, you can achieve the same result with Promise.all by attaching a β€˜.catch()’ to each promise in your array.

 

Yes, we could but Promise.allSettled is more concise. πŸš€

 

I think you can only handle the first error that way, not the other errors or successes.

code of conduct - report abuse