📅  最后修改于: 2022-03-11 15:03:44.842000             🧑  作者: Mango
Promise.all(
// Array of "Promises"
myItems.map(item => putStorageItem(item))
)
.then((url) => {
console.log(`All success`)
})
.catch((error) => {
console.log(`Some failed: `, error.message)
});