_same-value.js 190 B

123456
  1. // 7.2.9 SameValue(x, y)
  2. module.exports = Object.is || function is(x, y) {
  3. // eslint-disable-next-line no-self-compare
  4. return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
  5. };