Contents

remove(_:)

Removes all occurrences in the array of a given object.

Declaration

func remove(_ anObject: Any)

Parameters

  • anObject:

    The object to remove from the array.

Discussion

This method determines a match by comparing anObject to the objects in the receiver using the isEqual: method. If the array does not contain anObject, the method has no effect (although it does incur the overhead of searching the contents).

See Also

Removing Objects