Nayjest\Collection\CollectionReadInterface::filter

Iterates over each value in the <b>collection</b> passing them to the <b>callback</b> function.

If the <b>callback</b> function returns true, the current value from <b>collection</b> is returned into the result collection.