Compares two objects for equality.
- macOS 10.7+
- Mac Catalyst 13.0+
The first object to compare.
The second object to compare.
Returns true if the objects are equal, otherwise false. Two objects must be of the same type in order to be equal.
For two arrays to be equal, they must contain the same values at the same indexes. For two dictionaries to be equal, they must contain the same values for the same keys.
Two objects being equal implies that their hashes (as returned by xpc_hash()) are also equal.