Promise.all wrapper for easier error handling when using async/await
$ npm install await-to-all
const toAll = require('await-to-all')
async function someAsyncFunction() {
const [error, data] = await toAll([Promise, Promise, Promise])
if (error) {
console.error(error)
}
console.log(data)
}
MIT