UNPKG
@miniu/core-js
Version:
latest (2.6.12)
2.6.12
Standard library
github.com/zloirock/core-js
zloirock/core-js
@miniu/core-js
/
modules
/
_same-value.js
6 lines
(5 loc)
•
190 B
JavaScript
View Raw
1
2
3
4
5
6
// 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; };