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

Function getChildCount

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

Source from the content-addressed store, hash-verified

48}
49
50export function getChildCount(node: Node | undefined): number {
51 return node?.childrenKeys?.length ?? 0;
52}
53
54export function getChildrenKeys(node: Node): string[] {
55 return node?.childrenKeys ?? [];

Callers 3

genValueAttrsFunction · 0.90
hasChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected