0
What is a identity operators === ,!==
2 Answers
+ 1
Swift uses references in the memory that can't be compared with normal equals.
âEqual toâ means that two instances are considered âequalâ or âequivalentâ in value, for some appropriate meaning of âequalâ, as defined by the typeâs designer.
Use these operators to check whether two constants or variables refer to the same single instance.
âIdentical toâ means that two constants or variables of class type refer to exactly the same class instance.
0
can i get some examples