title: Access properties of objects into nested Array - Javascript
body: <p>I'd like please to retrieve all text (text 1,text 2....) from the following array :  </p>
  
  <pre><code>[
      {
      "reviews": 
      [
        {
          "_id": "5e84239d6e24358b50f3fe4e",
          "text": "My text 1"
        },
        {
          "_id": "5e8423a46e24358b50f3fe4f",
          "text": "My text 2"
        }
      ]
    },
    {
      "reviews": 
      [
        {
          "_id": "5e84239d6e24358b50f3fe4e",
          "text": "My text 3"
        },
        {
          "_id": "5e8423a46e24358b50f3fe4f",
          "text": "My text 4"
        }
      ]
    },
    {
      "reviews": 
      [
        {
          "_id": "5e84239d6e24358b50f3fe4e",
          "text": "My text 5"
        },
        {
          "_id": "5e8423a46e24358b50f3fe4f",
          "text": "My text 6"
        }
      ]
    }
  ]  
  </code></pre>
  
  <p>This array is stored in a variable called stores.  </p>
  
  <p>I have tried the following  : </p>
  
  <p><code>const listText = stores.map(count =&gt; count.reviews.text</code>   //  [null, null, null]<br>
  <code>const listText = stores.map((count, i) =&gt; count.reviews[i].text)</code>    //  Cannot read property 'text' of undefined<br>
  <code>const listText  = stores.forEach((key, i) =&gt; key.reviews[i].text)</code>   //  Cannot read property 'text' of undefined  </p>
  
  <p>Could you please help me out here, 
  Many thanks</p>