The console log captures the current state of the object, the later update of the object is reflected when you expand it. You can try in console the below to see how it behaves.
var test = {length:0,models:[]};
console.log(test);
test.length =4;