MCPcopy Create free account
hub / github.com/R-js/libRmath.js / isArray

Function isArray

scripts/nodeWalker.ts:14–16  ·  view source on GitHub ↗
(u: any)

Source from the content-addressed store, hash-verified

12}
13
14export function recursiveDescend(startNode: GeneralValue, selector: (node: GeneralValue) => GeneralValue | undefined, collector: GeneralValue[] = []) {
15 // special treatment if it is an array
16 if (Array.isArray(startNode) && startNode.length > 0) {
17 for (const node of startNode) {
18 recursiveDescend(node, selector, collector);
19 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected