hexo/node_modules/core-js/modules/_same-value.js

6 lines
195 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
// 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;
};