Ask P
Ask P

Reputation: 405

How to understand JS object structure from Chrome console.log() output?

Example:

What does does (...) indicate as a property value?

When a property has dropdown tag vs without a dropdown tag - what does this indicate?

(the following snippet uses mobx action & action.bound - though these do not influence the question at hand)

Implementation of Store class containing different function declarations

Upvotes: 2

Views: 276

Answers (1)

Soorena
Soorena

Reputation: 4452

Please use mobx toJs function for logging into console:

var obj = mobx.observable({
    x: 1
});

var clone = mobx.toJS(obj);
console.log(clone);

further info.


  • If you are using mobx-state-tree instead of toJS use getSnapShot.

Upvotes: 1

Related Questions