jason
jason

Reputation: 879

Chrome Console does not show object properties any more

Recently i noticed that chrome does not show the properties of any object, it was showing them 10 days back. Then I checked same thing in IE, Firefox, they all do not show any property.

For example :

var a={};  
a   // gives Object {}

Some days back it showed all the properties in chrome at least. What could be the possible reason behind this change.?

enter image description here

Upvotes: 1

Views: 380

Answers (1)

loxxy
loxxy

Reputation: 13151

Apparantly, Chrome used to emulate the dir function by default, but now it seems to emulate inspect.

So to get a listing of all the properties of the specified object,

Instead of a which maps to inspect(a), Use dir(a);

Upvotes: 1

Related Questions