Frontend/25_01_07/mai/node_modules/es-abstract/2015/SameValueZero.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

10 lines
223 B
JavaScript

'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));
};