In swift there seem to be two equality operators: the double equals (==) and the triple equals (===), what is the difference between the two?
==
===
!== and === are identity operators and are used to determine if two objects have the same reference.
!==
Swift also provides two identity operators (=== and !==), which you use to test whether two object references both refer to the same object instance.
Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l
2.1m questions
2.1m answers
60 comments
57.0k users