baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+40
@@ -0,0 +1,40 @@
|
||||
function isEqual(x, y) {
|
||||
if (x === y) {
|
||||
return true
|
||||
}
|
||||
if (!(x instanceof Object) || !(y instanceof Object)) {
|
||||
return false
|
||||
}
|
||||
if (x.constructor !== y.constructor) {
|
||||
return false
|
||||
}
|
||||
for (var p in x) {
|
||||
if (x.hasOwnProperty(p)) {
|
||||
if (!y.hasOwnProperty(p)) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (x[p] === y[p]) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (typeof(x[p]) !== "object") {
|
||||
return false
|
||||
}
|
||||
|
||||
if (!Object.equals(x[p], y[p])) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
for (p in y) {
|
||||
if (y.hasOwnProperty(p) && !x.hasOwnProperty(p)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isEqual
|
||||
}
|
||||
Reference in new issue
Block a user