Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true.
- iOS 3.0+
- macOS 10.4+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The predicate against which to evaluate the receiving array’s elements.
A new array containing the objects in the receiving array for which
Objects in the resulting array appear in the same order as they do in the receiver.
For more details, see Predicate Programming Guide.