aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/internals/same-value.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/internals/same-value.js')
-rw-r--r--node_modules/core-js/internals/same-value.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/same-value.js b/node_modules/core-js/internals/same-value.js
new file mode 100644
index 0000000..4661f85
--- /dev/null
+++ b/node_modules/core-js/internals/same-value.js
@@ -0,0 +1,6 @@
+// `SameValue` abstract operation
+// https://tc39.github.io/ecma262/#sec-samevalue
+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;
+};