20240517
This commit is contained in:
24
node_modules/store/tests/util.js
generated
vendored
Normal file
24
node_modules/store/tests/util.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
module.exports = {
|
||||
deepEqual: deepEqual
|
||||
}
|
||||
|
||||
function deepEqual(a,b) {
|
||||
if (typeof a != typeof b) {
|
||||
return false
|
||||
}
|
||||
if (typeof a != 'object') {
|
||||
return a === b
|
||||
}
|
||||
var key
|
||||
for (key in a) {
|
||||
if (!deepEqual(a[key], b[key])) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
for (key in b) {
|
||||
if (!deepEqual(b[key], a[key])) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user