removeObject(identicalTo:)
Removes all occurrences of a given object in the array.
Declaration
func removeObject(identicalTo anObject: Any)Parameters
- anObject:
The object to remove from the array.
Discussion
This method determines a match by comparing the address of anObject to the addresses of objects in the receiver. If the array does not contain anObject, the method has no effect (although it does incur the overhead of searching the contents).