API reference: @salmonui/data-grid/engine/tree
isAncestorOffunction
import { isAncestorOf } from '@salmonui/data-grid/engine/tree';function isAncestorOf(layout: TreeLayout, ancestor: number, row: number): boolean;
True when ancestor is a proper ancestor of row in layout (both source indexes). O(1).