I have a problem with a for
loop. What the problem is I have a for
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:
var i = 0;
for (var key in data) {
console.log(data[key].allProducts[i]);
i++;
}