ohctechv3/.svn/pristine/be/be2b2df8112e2ac72c5a0da1225abf4d3b3d208b.svn-base
2024-10-28 15:03:36 +05:30

14 lines
307 B
Plaintext

'use strict';
var $isNaN = require('../helpers/isNaN');
// http://262.ecma-international.org/5.1/#sec-9.12
module.exports = function SameValue(x, y) {
if (x === y) { // 0 === -0, but they are not identical.
if (x === 0) { return 1 / x === 1 / y; }
return true;
}
return $isNaN(x) && $isNaN(y);
};