UNPKG

mobx-bonsai

Version:

A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding

10 lines (9 loc) 277 B
/** * Returns if a given node is a root object. * * Note that this function will throw if the passed object is not a node. * * @param node Target object. * @returns true if the object is a root, false otherwise. */ export declare function isRoot(node: object): boolean;