Readonly parentParent pattern.
Readonly typeguardType guard to check whether nodes match.
Returns a pattern whose parent pattern is this. The pattern matches if typeguard returns true.
A type guard of the child pattern.
Returns a pattern whose parent pattern is this. The pattern matches if typeguard returns true.
A callback of the child pattern.
Returns a node in the child nodes if matched. Returns undefined if not matched.
Its parent node must match its parentPattern.
Array of nodes to search.
Options of search.
Returns the array of all the matched node. Returns an empty array if not matched. Their parent node must match parentPattern.
Array of nodes to search.
Options of search.
Generated using TypeDoc
Example