It will return false only for NaN, because Number.POSITIVE_INFINITY === Number.POSITIVE_INFINITY returns true, and it is same for negative infinity as well.
HTML, CSS, Bootstrap, XML, ajax, react js, WordPress, Magento, Shopify, Photoshop, Camtasia, SEO & learning new skills every moment 👨🏼💻 | I believe in learning and sharing with others 🛴
It will return
false
only for NaN, becauseNumber.POSITIVE_INFINITY === Number.POSITIVE_INFINITY
returns true, and it is same for negative infinity as well.Also if using a Getter or a Proxy returning different values each time :)
You don't know everything 😛