Function: isAnyLinkedStructureNodeMatching()
isAnyLinkedStructureNodeMatching<
Node>(options:Readonly<{getNextNode: (node:Node) =>Node|null;isMatch: (node:Node) =>boolean;startNode:Node|null; }>):boolean
Defined in: _internal/cycle-safe-linked-search.ts:88
Check whether any node in a linked structure satisfies a predicate.
Type Parametersโ
Nodeโ
Node
Parametersโ
optionsโ
Readonly<{ getNextNode: (node: Node) => Node | null; isMatch: (node: Node) => boolean; startNode: Node | null; }>
Linked-structure traversal options.
startNode: Initial node to inspect.getNextNode: Function that returns the next node in the chain.isMatch: Predicate used to test each visited node.
Returnsโ
boolean
true when any visited node matches; otherwise false.