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
14function isArray(u: any): u is (ScalarValueArray | JSObject[]) {
15 return u !== null && u !== undefined && Array.isArray(u) && u.length > 0;
16}
17
18export function recursiveDescend(startNode: GeneralValue, selector: (node: GeneralValue) => GeneralValue | undefined, collector: GeneralValue[] = []) {
19 // special treatment if it is an array

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected