Removes the objects at the specified indexes from the array.
- iOS 2.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
The indexes of the objects to remove from the array. The locations specified by
indexesmust lie within the bounds of the array.
This method is similar to
remove, but allows you to efficiently remove multiple objects with a single operation.
indexes specifies the locations of objects to be removed given the state of the array when the method is invoked, as illustrated in the following example:
nil, this method raises an exception.