Phase 2: Intermediate • Module 2: Promises & Async
Implement the Promise.allSettled() function that resolves to an array of outcomes when all the input elements are either resolved or rejected