(node: Node | undefined)
| 44 | } |
| 45 | |
| 46 | export function hasChildren(node: Node | undefined) { |
| 47 | return !!getChildCount(node); |
| 48 | } |
| 49 | |
| 50 | export function getChildCount(node: Node | undefined): number { |
| 51 | return node?.childrenKeys?.length ?? 0; |
no test coverage detected