I want to know when obj !== obj
can be true?
This is what I saw a line of code in the book, I was very puzzled.
var result = class2type[(obj == null || obj !== obj)] ? obj : toString.call(obj) ] || obj.nodeName || "#";
The one case that pops to my mind is NaN
:
console.log(NaN !== NaN) // true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With