title: Empty Array returned and not being populated when pushing objects
body: <p>I am using Node JS and Express JS, here is my controller code:</p>
  <pre><code>const UserComment = require(&quot;../model/UserComment&quot;);
  
  
  router.post(&quot;/get/comments&quot;, async (request, response) =&gt;{
  try{
      let currentUserID = request.body.userID;
      let myUserComment = await UserComment.find({userID: currentUserID});        
      let friendsCommentsArray = [ ...myUserComment];
  
      let friendsComments = await axios.post(`http://localhost:5000/router/accounts/account/following/list`, {userID: currentUserID})
          .then((resp) =&gt; {
              resp.data.message.map((parentArrayOfArray) =&gt;{
                 
                  parentArrayOfArray.map((friendID) =&gt;{
                      let friendsCommentsToLookUp = UserComment.find({userID: friendID})
  
                      friendsCommentsToLookUp.then((commentsArray) =&gt;{
                          commentsArray.map((comment) =&gt;{
                              if(String(comment.userID) === friendID){
  
                                  friendsCommentsArray.push(comment);
                                 
                                  
                              }else{
                              
                                  console.log(&quot;no&quot;)
                              }
                          })
                      });
                      
                 });
              });
  
          }).catch((err) =&gt;{
              console.log(&quot;err: &quot;, err);
              throw err;
  
          });
  
  
  
  
  
    return response.status(200).json({message: friendsPostsArray}); 
            
   }catch(err){
      return response.status(400).json({message: `${err}`});
  
  }
  });
  </code></pre>
  <p>The friendsCommentsArray, when I console.log it I can see the data, but when I return it, it’s empty. What is the problem, why is it empty, even though i'm pushing every comment iterated over to the friendsCommentsArray.</p>
  <p>However, the returned friendsCommentsArray is empty. how to solve this issue ?</p>
  <p>Thanks.</p>