JS espera hasta que se resuelvan 2 promesas

const promise1 = //...
const promise2 = //...
Promise.all([promise1, promise2]).then(data => {
	const dataFromPromise1 = data[0]
	const dataFromPromise2 = data[1]
})
Its me