Urara-Blog/node_modules/.pnpm-store/v3/files/5d/8c52f95d9702ef0ca302497e01de9bf77709f899781f6d1a21934a4b544fcaecc25392b15a98e309588668f42332d7ca984e838d1878cf381f79f868de2fd2
2022-08-14 01:14:53 +08:00

17 lines
361 B
Text

'use strict';
var Type = require('./Type');
// https://262.ecma-international.org/5.1/#sec-11.9.6
module.exports = function StrictEqualityComparison(x, y) {
var xType = Type(x);
var yType = Type(y);
if (xType !== yType) {
return false;
}
if (xType === 'Undefined' || xType === 'Null') {
return true;
}
return x === y; // shortcut for steps 4-7
};