Files
NapCatQQ/.pnpm-store/v3/files/15/e673704ddbaa65af2c1afdde2a2534f8219d51ddbafb02765bde1c7e44e898fdcd2f4f7928398cbf6e9e2a1a3af39a499e8143e22c825936aa8dc2afd837f7
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
312 B
Plaintext

'use strict';
var $isNaN = require('math-intrinsics/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);
};