mobx-bonsai
Version:
A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding
9 lines (8 loc) • 308 B
TypeScript
/**
* Returns if the target is a "parent" that has in its tree the given "child" node.
*
* @param parent Target node.
* @param child Child node.
* @returns true if the object is a parent of the child, false otherwise.
*/
export declare function isParentOfChild(parent: object, child: object): boolean;