MCPcopy
hub / github.com/loggerhead/json4u / hasChildren

Function hasChildren

src/lib/parser/node.ts:46–48  ·  view source on GitHub ↗
(node: Node | undefined)

Source from the content-addressed store, hash-verified

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

Callers 9

ItemFunction · 0.90
isGraphNodeMethod · 0.90
searchFunction · 0.90
createNodeFunction · 0.90
createArrayNodeFunction · 0.90
doGenFlowNodesFunction · 0.90
newFlowNodeFunction · 0.90
genValueAttrsFunction · 0.90
Node.tsxFile · 0.90

Calls 1

getChildCountFunction · 0.85

Tested by

no test coverage detected