What is use of === in Swift?

The === or identity operator compares the identity of the objects . It checks whether the operands refer to the same object. As you can see, arr1 and arr2 do not refer to the same object, despite the objects being equal.

Leave a Reply

Your email address will not be published. Required fields are marked *