完成大部分基础功能

This commit is contained in:
sprov
2021-05-30 15:23:48 +08:00
parent a66dff6959
commit 4bae13dcc6
12 changed files with 443 additions and 22 deletions

View File

@@ -270,4 +270,18 @@ class ObjectUtil {
return obj;
}
static equals(a, b) {
for (const key in a) {
if (!a.hasOwnProperty(key)) {
continue;
}
if (!b.hasOwnProperty(key)) {
return false;
} else if (a[key] !== b[key]) {
return false;
}
}
return true
}
}