promise.all for await function code example
Example: await all pronmises
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});