Promise.all(), Promise.race(), and Promise.any()
When mapping the status of each result in Promise.allSettled(), what will be logged to console?
Promise.allSettled([
Promise.resolve(1),
Promise.reject('error'),
Promise.resolve(3)
]).then(results => {
console.log(results.map(r => r.status));
});