com-tools
Version:
com-tools 提供了一些通用的工具函数;
53 lines (25 loc) • 890 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [com-tools](./com-tools.md) > [getSubGroupEntries](./com-tools.getsubgroupentries.md)
## getSubGroupEntries() function
获取某个节点的所有直接子组名字 和 对应的节点
**Signature:**
```typescript
export declare function getSubGroupEntries<Member, Group extends PropertyKey = string>(node: GroupTree<any, Group>): [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)<!-- --><any, Group>
</td><td>
</td></tr>
</tbody></table>
**Returns:**
\[Group, [GroupTree](./com-tools.grouptree.md)<!-- --><Member, Group>\]\[\]