com-tools
Version:
com-tools 提供了一些通用的工具函数;
53 lines (25 loc) • 848 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [com-tools](./com-tools.md) > [getSubGroupNodes](./com-tools.getsubgroupnodes.md)
## getSubGroupNodes() function
获取某个节点的所有直接子组节点
**Signature:**
```typescript
export declare function getSubGroupNodes<Member, Group extends PropertyKey = string>(node: GroupTree<Member, Group>): GroupTree<Member, Group>[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
node
</td><td>
[GroupTree](./com-tools.grouptree.md)<!-- --><Member, Group>
</td><td>
</td></tr>
</tbody></table>
**Returns:**
[GroupTree](./com-tools.grouptree.md)<!-- --><Member, Group>\[\]