malinajs 0.7.14 → 0.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/malina.js +1 -1
- package/package.json +1 -1
- package/runtime.js +3 -1
package/malina.js
CHANGED
package/package.json
CHANGED
package/runtime.js
CHANGED
|
@@ -120,11 +120,13 @@ const _compareDeep = (a, b, lvl) => {
|
|
|
120
120
|
let a1 = isArray(b);
|
|
121
121
|
if(a0 !== a1) return true;
|
|
122
122
|
|
|
123
|
-
if(a0) {
|
|
123
|
+
if (a0) {
|
|
124
124
|
if(a.length !== b.length) return true;
|
|
125
125
|
for(let i = 0; i < a.length; i++) {
|
|
126
126
|
if(_compareDeep(a[i], b[i], lvl - 1)) return true;
|
|
127
127
|
}
|
|
128
|
+
} else if (a instanceof Date) {
|
|
129
|
+
if(b instanceof Date) return a.getTime() !== b.getTime();
|
|
128
130
|
} else {
|
|
129
131
|
let set = {};
|
|
130
132
|
for(let k in a) {
|