adding an undefined check to the isSame function
This commit is contained in:
parent
7ef6c51f1f
commit
d225fa3d2b
|
|
@ -29,7 +29,7 @@ module.exports = {
|
|||
|
||||
if (Array.isArray(a)) {
|
||||
return !this.arraysDiffer(a, b);
|
||||
} else if (typeof a === 'object' && a !== null) {
|
||||
} else if (typeof a === 'object' && a !== null && a !== undefined) {
|
||||
return !this.objectsDiffer(a, b);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue