I'm trying to iterate through array values in my project.
If I iterate through Array.map() it gives me empty array, but if I iterate with for...of loop I get the right results (new array with values).
const items = await Item.find({ itemId: items.map(item => item) });
for (item of items) {
itemsArr.push(await Item.find({ itemId: item };
}