Opal-Estate-Pro/node_modules/core-js/modules/_same-value.js
2019-09-13 11:27:52 +07:00

6 lines
190 B
JavaScript

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