I have read the MDN page on the "Object.is" method. It gives an alternative code for the browsers that do not provide this method:
if (!Object.is) {
Object.is = function(v1, v2) {
if (v1 === 0 && v2 === 0) {
return 1 / v1 === 1 / v2;
}
if (v1 !== v1) {
return v2 !== v2;
}
return v1 === v2;
};
}
The question is simple: when can the second "if" be true ?
Thank you for your attention.