doesContain(_:)
Returns a Boolean value that indicates whether the receiver contains a given object.
Declaration
func doesContain(_ object: Any) -> BoolParameters
- object:
The object to search for in the receiver.
Return Value
Discussion
Currently, doesContain(_:) messages are never sent to any object from within Cocoa itself.
The default implementation for this method provided by NSObject returns YES if the receiver is actually an NSArray object and an indexOfObjectIdentical(to:) message sent to the same object would return something other than NSNotFound.