title: API response undefined
body: <p>When I am trying to access the 0th index of the data I am getting error undefined but when I am trying to print out the whole object it is working fine. I am unable to access any element or loop over the data. The data variable works fine but the tSeries variable is undefined.</p>
  <p>This is the code snippet:</p>
  <pre><code>var data;
  var tSeries;
  
  
  
  (async () =&gt; {
      const response = await fetch(&quot;https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&amp;symbol=IBM&amp;apikey=&quot; + key);
      apidata = await response.json();
      data = (apidata[&quot;Meta Data&quot;][&quot;2. Symbol&quot;]);
      tSeries = (apidata[&quot;Time Series (Daily)&quot;][0]);
      console.log(tSeries);
      
  })();
  </code></pre>
  <p>Here is the JSON response snippet:</p>
  <pre><code>{
      &quot;Meta Data&quot;: {
          &quot;1. Information&quot;: &quot;Intraday (5min) open, high, low, close prices and volume&quot;,
          &quot;2. Symbol&quot;: &quot;IBM&quot;,
          &quot;3. Last Refreshed&quot;: &quot;2020-06-24 16:00:00&quot;,
          &quot;4. Interval&quot;: &quot;5min&quot;,
          &quot;5. Output Size&quot;: &quot;Compact&quot;,
          &quot;6. Time Zone&quot;: &quot;US/Eastern&quot;
      },
      &quot;Time Series (Daily)&quot;: {
          &quot;2020-06-24 16:00:00&quot;: {
              &quot;1. open&quot;: &quot;116.4600&quot;,
              &quot;2. high&quot;: &quot;116.6700&quot;,
              &quot;3. low&quot;: &quot;116.3800&quot;,
              &quot;4. close&quot;: &quot;116.4900&quot;,
              &quot;5. volume&quot;: &quot;263785&quot;
          },
          &quot;2020-06-24 15:55:00&quot;: {
              &quot;1. open&quot;: &quot;116.8000&quot;,
              &quot;2. high&quot;: &quot;116.8600&quot;,
              &quot;3. low&quot;: &quot;116.3500&quot;,
              &quot;4. close&quot;: &quot;116.4700&quot;,
              &quot;5. volume&quot;: &quot;154646&quot;
          },
          &quot;2020-06-24 15:50:00&quot;: {
              &quot;1. open&quot;: &quot;117.0100&quot;,
              &quot;2. high&quot;: &quot;117.1400&quot;,
              &quot;3. low&quot;: &quot;116.8500&quot;,
              &quot;4. close&quot;: &quot;116.8500&quot;,
              &quot;5. volume&quot;: &quot;99465&quot;
          },
          &quot;2020-06-24 15:45:00&quot;: {
              &quot;1. open&quot;: &quot;116.6900&quot;,
              &quot;2. high&quot;: &quot;117.0400&quot;,
              &quot;3. low&quot;: &quot;116.6600&quot;,
              &quot;4. close&quot;: &quot;117.0100&quot;,
              &quot;5. volume&quot;: &quot;83736&quot;
          }
  </code></pre>