Comparing version 14.2.3 to 15.0.1
# Changelog | ||
## 15.0.1 | ||
deepEqualAdded will return true more often when int arrays are compared | ||
## 15.0.0 | ||
deepEqual and deepEqualAdded will return true for objects with same content even if one has a null prototype | ||
## 14.2.0 | ||
@@ -4,0 +14,0 @@ |
12
deep.js
@@ -237,3 +237,3 @@ export { | ||
if (a.constructor !== b.constructor) { | ||
if (Array.isArray(b)) { | ||
return false; | ||
@@ -297,3 +297,8 @@ } | ||
if (Array.isArray(b)) { | ||
return false; | ||
} | ||
if ((a instanceof Uint8Array) || | ||
@@ -306,3 +311,3 @@ (a instanceof Uint8ClampedArray) || | ||
(a instanceof Int32Array)) { | ||
if (!(b instanceof a.constructor)) { | ||
if (!(b instanceof a.constructor) && !(a instanceof b.constructor)) { | ||
return false; | ||
@@ -343,5 +348,2 @@ } | ||
if (a.constructor !== b.constructor) { | ||
return false; | ||
} | ||
@@ -348,0 +350,0 @@ if (isObject(a) && isObject(b)) { |
{ | ||
"name": "utilsac", | ||
"version": "14.2.3", | ||
"version": "15.0.1", | ||
"description": "Utility functions", | ||
@@ -5,0 +5,0 @@ "license": "CC0-1.0", |
39086