easy5 pts · first answer countsjavascriptasync-await
map with an async callback
What does this print?
const ids = [1, 2, 3]
const users = ids.map(async (id) => ({ id }))
console.log(users.length, users[0] instanceof Promise)What does this print?
const ids = [1, 2, 3]
const users = ids.map(async (id) => ({ id }))
console.log(users.length, users[0] instanceof Promise)