aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2017/SameValueZero.js @ 0b434236
1 |
'use strict'; |
---|---|
2 |
|
3 |
var $isNaN = require('../helpers/isNaN'); |
4 |
|
5 |
// https://www.ecma-international.org/ecma-262/6.0/#sec-samevaluezero
|
6 |
|
7 |
module.exports = function SameValueZero(x, y) { |
8 |
return (x === y) || ($isNaN(x) && $isNaN(y)); |
9 |
};
|