3👍
✅
Your loop variable name ‘comments’ is the same as the array variable name ‘comments’, also you don’t need to await before find.
**comments**.find((**comments**) => **comments**.postID === doc._id);
should be:
comments.find((comment) => comment.postID === doc._id);
here: comments = [comment, comment, comment, comment];
Source:stackexchange.com