DEV Community

Discussion on: Comparison & Equolity Operators

Collapse
 
pentacular profile image
pentacular

NaN in identity (and in equality) operator compared with any other value always evaluates to false

Again, if NaN === NaN is false, === cannot be an identity operator. :)

Both operands being the same type (object), however have reference to different objects

You'll note that your rules have no "reference to" in them.

[] and [] just have different values - the value of an object is not determined by its properties.