Skip to content

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

ParameterTypeDescription
nodeT
mapperFieldMapper<K, C>
resultsT[](Optional)

Returns:

T[]