import { observable } from "mobx"; class SubStore { store: RootStore; constructor(store: RootStore) { this.store = store; } toJSON() { const pureObject = Object ...
If provided, the hash keys will be derived from a property of each array item instead of the string values themselves. You can use id or even dot syntax, e.g. foo.id.