diff options
Diffstat (limited to 'node_modules/core-js/internals/same-value-zero.js')
| -rw-r--r-- | node_modules/core-js/internals/same-value-zero.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/same-value-zero.js b/node_modules/core-js/internals/same-value-zero.js new file mode 100644 index 0000000..452f230 --- /dev/null +++ b/node_modules/core-js/internals/same-value-zero.js @@ -0,0 +1,6 @@ +// `SameValueZero` abstract operation +// https://tc39.github.io/ecma262/#sec-samevaluezero +module.exports = function (x, y) { + // eslint-disable-next-line no-self-compare + return x === y || x != x && y != y; +}; |
