Removes all occurrences of a given object in the array.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The object to remove from the array.
This method determines a match by comparing the address of
an to the addresses of objects in the receiver. If the array does not contain
an, the method has no effect (although it does incur the overhead of searching the contents).