title: Javascript array showing not an array Error
body: <p>i have an array of object inside another object. when i iterate this array with </p>
  
  <pre><code>t.schedules.forEach(function(item) {
      console.log(item[index]);
  
  });
  </code></pre>
  
  <p>it shows error Uncaught TypeError: t.schedules.forEach is not a function.</p>
  
  <p>but i am able to get it with t.schedules[index];</p>
  
  <p><a href="https://i.stack.imgur.com/XXvTU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XXvTU.png" alt="please see this image"></a></p>
  
  <p><a href="https://i.stack.imgur.com/dzsBj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dzsBj.png" alt="with index"></a></p>
  
  <p><a href="https://i.stack.imgur.com/sQn5j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sQn5j.png" alt="enter image description here"></a></p>