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

17 lines
281 B
Plaintext

'use strict';
// https://262.ecma-international.org/16.0/#sec-sametype
module.exports = function SameType(x, y) {
if (x === y) {
return true;
}
if (
(x === null && y !== null)
|| (x !== null && y === null)
) {
return false;
}
return typeof x === typeof y;
};