Example 6-5. Destructuring the fulfillment value from Promise.all()


Promise.all([promise1, promise2]).then(function ([result1, result2]) {
	// ...
});