Skip to main content

Function: isWithinFilterCallback()

isWithinFilterCallback(node: Readonly<Node>): boolean

Defined in: _internal/filter-callback.ts:139

Checks whether a node appears inside a callback passed as the first argument to a direct .filter(...) call.

Parametersโ€‹

nodeโ€‹

Readonly<Node>

Node to inspect.

Returnsโ€‹

boolean

true when the node is inside a .filter(...) callback; otherwise false.