findAll

Finds all CompositionNode instances in the current node hierarchy that satisfy the given filter. Traverses the hierarchy recursively, evaluating each node and its children.

Return

A list of CompositionNode instances that satisfy the provided filter condition.

Parameters

filter

A predicate function to determine whether a node should be included in the result. It takes a CompositionNode as input and returns a Boolean.