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