same-value-zero.js 213 B

123456
  1. // `SameValueZero` abstract operation
  2. // https://tc39.github.io/ecma262/#sec-samevaluezero
  3. module.exports = function (x, y) {
  4. // eslint-disable-next-line no-self-compare
  5. return x === y || x != x && y != y;
  6. };