0

I am attaching an image where I can see that the entities property of object is an array with 100 elements. But when I expand it shows 201. And actually it is an array of length 201 only. I am not sure why this is happening. Any help is appreciated.

enter image description here

KingJames
  • 546
  • 2
  • 9
  • 20

1 Answers1

0

When you console log for chrome what it outputs is what the object looks like as soon as it hits that piece of code. If you expand the object at a later time it could have changed.

var myObject = { test: 4, [{},{},{},{},{},{},{},{},{},{},{}] }
console.log(myObject);
myObject.test = 5;

Drop this into the chrome console and expand the object to see what I mean. It will show '4' when it's closed but '5' when it's opened.

Sinister Beard
  • 3,570
  • 12
  • 59
  • 95
Mathew Berg
  • 28,625
  • 11
  • 69
  • 90