blob: bf1a1486a167e2c8014753d513e5561918ae3b89 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var $isNaN = require('../helpers/isNaN');
4
5// https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero
6
7module.exports = function SameValueZero(x, y) {
8 return (x === y) || ($isNaN(x) && $isNaN(y));
9};