6 ms·
There are a few instances where using == is desirable, for instance it allows you to compare two instances of an object and returns true if the properties are t
by rossriley 4y ago
There are a few instances where using == is desirable, for instance it allows you to compare two instances of an object and returns true if the properties are the same.
In this case === will always return false since it checks if the two instances are the same object.