DEV Community

Discussion on: Do you really know JS?

Collapse
 
josemunoz profile image
José Muñoz

because you're comparing references, not their values.

SO Thread: stackoverflow.com/questions/110327...

Collapse
 
clementdeb profile image
clementDeb

because they are regex which means object. cheers