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

Function isIterable

src/lib/parser/node.ts:38–40  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

36}
37
38export function isIterable(node: Node) {
39 return isIterableType(node.type);
40}
41
42export function isIterableType(t: NodeType) {
43 return t === "array" || t === "object";

Callers 9

dfsMethod · 0.90
stringifyNodeMethod · 0.90
toJSONMethod · 0.90
newNodeMethod · 0.90
searchFunction · 0.90
createNodeFunction · 0.90
previewProviderMethod · 0.90
genValueAttrsFunction · 0.90
checkFunction · 0.90

Calls 1

isIterableTypeFunction · 0.85

Tested by 1

checkFunction · 0.72