function deepEqual(a, b) {
if (a === b) return true;
if (typeof a !== typeof b) return false;
// 处理 BigInt
if (typeof a === 'bigint' && typeof b === 'bigint') {
return a === b;
}
// 处理对象和数组(递归逻辑略)
// ...
}
function deepEqual(a, b) {
if (a === b) return true;
if (typeof a !== typeof b) return false;
// 处理 BigInt
if (typeof a === 'bigint' && typeof b === 'bigint') {
return a === b;
}
// 处理对象和数组(递归逻辑略)
// ...
}