title: Getting the error: "data.id is undefined" while iterating a JSON array
body: <p>Trying to log the data in the array but getting an error: <code>data.id is undefined</code></p>
  
  <pre><code>{
    youtube.map((item, index) =&gt; {
      return console.log(youtube.id);
    });
  }
  </code></pre>
  <p>This is the JSON array which is being mapped:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;youtube&quot;:[
      {
        &quot;id&quot;:&quot;https://www.youtube.com/embed/hogbutbOgbo&quot;,
        &quot;title&quot;:&quot;YouTube video player&quot;
      },
      {
        &quot;id&quot;:&quot;HHJkUQGm2H8&quot;,
        &quot;title&quot;:&quot;YouTube video player&quot;
      },
      {
        &quot;id&quot;:&quot;fEE4RO-_jug&quot;,
        &quot;title&quot;:&quot;YouTube video player&quot;
      },
      {
        &quot;id&quot;:&quot;dpqelE_9OgA&quot;,
        &quot;title&quot;:&quot;YouTube video player&quot;
      },
      {
        &quot;id&quot;:&quot;u1NlmFa0-68&quot;,
        &quot;title&quot;:&quot;YouTube video player&quot;
      },
      {
        &quot;id&quot;:&quot;qoUxP_h6DRs&quot;,
        &quot;title&quot;:&quot;YouTube video player&quot;
      }
    ]
  }
  </code></pre>