The object to start the search from - this object is also included in the search.
The type of the component to search for.
Optional
arr: T[]An optional array to store the found components in. If not provided, a new array is created.
If true, the array is cleared before storing the found components. Default is true.
An array of components of the given type found in the children of the given object.
Searches for a given component type in the children of the given object.