title: Javascript Object Array loop not interrating
body: <p>I have a problem with a <code>for</code> loop. What the problem is I have a <code>for</code> that is going through an object and it is only going through the array once. How can I loop through the entire object array loop? The current code is below:</p>
  
  <pre><code>var i = 0;
  for (var key in data) {
    console.log(data[key].allProducts[i]);
    i++;
  }
  </code></pre>