This is my code
const someIDs = [1, 2, 3];
const users = someIDs.map(async(ID) => {
const user = await getUser(ID);
return user;
});
cosnole.log(users);
This is a simple example in which I wanted to show what I want. How to do asynchronous iteration in map, forEach. without using Promise.all (), for ... of.