function objectIs(x, y) {
  if (x === y) {
    return x !== 0 || 1 / x === 1 / y;
  }
  return x !== x && y !== y;
}
function objectIs(x, y) {
  if (x === y) {
    return x !== 0 || 1 / x === 1 / y;
  }
  return x !== x && y !== y;
}
function objectIs ( x , y ) { if ( x === y ) { return x !== 0 || 1 / x === 1 / y ; } return x !== x && y !== y ; }
Inlined Object.is polyfill. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
Inlined Object . is polyfill . https : // developer . mozilla . org / en - US / docs / Web / JavaScript / Reference / Global_Objects / Object / is