Consider next code:
var rows = [];
for (var i = 0; i < 10; i++) {
rows.push({num:i});
console.log(rows);
}
Why do I see next console output:
[Object]
[Object, Object]
[Object, Object, Object]
[Object, Object, Object, Object]
[Object, Object, Object, Object, Object]
[Object, Object, Object, Object, Object, Object]
[Object, Object, Object, Object, Object, Object, Object]
etc ...
But when I unfold, for example, first object I see all 10 objects in array but at this time I put only first one? So each iteration I see all 10 objects in array
I use chrome developers tools but the same picture in firebug, so I guess my mistake but can't figure out what's happening