Frontend/25_01_07/mai/node_modules/es-abstract/2018/SameValueZero.js

10 lines
223 B
JavaScript
Raw Normal View History

2025-01-28 10:38:27 +00:00
'use strict';
var $isNaN = require('math-intrinsics/isNaN');
// https://262.ecma-international.org/6.0/#sec-samevaluezero
module.exports = function SameValueZero(x, y) {
return (x === y) || ($isNaN(x) && $isNaN(y));
};