Узел JS бежит за петлей асинхронно
const Output = [];
for await (const item of List) {
let result = await someAsyncFunction(item);
Output.push(result);
};
res.status(200).json(Output); // response is sent after the loop is finished
amit.bhagat