Async Await usage and pitfalls in Array.prototype.map() and chaining
Let's consider the code below
const IDs = [1, 2, 3];
const usersData = IDs.map(async (id) => await getUserData(id));
console.log(usersData);
What would this output?
[Promise, Promise, Promise];
All these are promises. But we are expecting data as...
puruvj.hashnode.dev2 min read