Let\'s say I have a set of Promises that are making network requests, of which one will fail:
Promise
// http://does-not-exist will throw a TypeError va
Promise.all with using modern async/await approach
Promise.all
async/await
const promise1 = //... const promise2 = //... const data = await Promise.all([promise1, promise2]) const dataFromPromise1 = data[0] const dataFromPromise2 = data[1]