Description

Object.is provides a way of comparing values that’s more precise than ===

console.log(NaN === NaN) // false
console.log(Object.is(NaN, NaN)) //true
console.log(-0 === +0) // true
console.log(Object.is(-0, +0)) // false