Home > @jview/utils > getDescentdantsByNode
getDescentdantsByNode() function
Signature:
typescript
export declare function getDescentdantsByNode<K extends string = 'key', C extends string = 'children', T extends TreeNode<K, C> = TreeNode<K, C>>(node: T, mapper: FieldMapper<K, C>, results?: T[]): T[];
export declare function getDescentdantsByNode<K extends string = 'key', C extends string = 'children', T extends TreeNode<K, C> = TreeNode<K, C>>(node: T, mapper: FieldMapper<K, C>, results?: T[]): T[];
Parameters
Parameter | Type | Description |
---|---|---|
node | T | |
mapper | FieldMapper<K, C> | |
results | T[] | (Optional) |
Returns:
T[]