4 lines
142 B
JavaScript
4 lines
142 B
JavaScript
|
// 7.2.9 SameValue(x, y)
|
||
|
module.exports = Object.is || function is(x, y){
|
||
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
||
|
};
|