isEqual(to:)
Compares the receiving array to another array.
Declaration
func isEqual(to otherArray: [Any]) -> BoolParameters
- otherArray:
An array.
Return Value
true if the contents of otherArray are equal to the contents of the receiving array, otherwise false.
Discussion
Two arrays have equal contents if they each hold the same number of objects and objects at a given index in each array satisfy the isEqual(_:) test.