📅  最后修改于: 2022-03-11 15:04:30.695000             🧑  作者: Mango
const someFunction = (myArray) => {
const promises = myArray.map(async (myValue) => {
return {
id: "my_id",
myValue: await service.getByValue(myValue)
}
});
return Promise.all(promises);
}