In Safari with no add-ons (and actually most other browsers), console.log will show the object at the last state of execution, not at the state when conso
console.log
conso
You might want to log the object in a human readable way:
console.log(JSON.stringify(myObject, null, 2));
This indents the object with 2 spaces at each level.
How can I pretty-print JSON using JavaScript?