UNPKG

235 BJavaScriptView Raw
1'use strict';
2// `SameValueZero` abstract operation
3// https://tc39.es/ecma262/#sec-samevaluezero
4module.exports = function (x, y) {
5 // eslint-disable-next-line no-self-compare -- NaN check
6 return x === y || x !== x && y !== y;
7};