mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
deepDiffer should support explicitly undefined values
This commit is contained in:
parent
28e38afb68
commit
b51f51e47d
@ -38,7 +38,7 @@ var deepDiffer = function(one: any, two: any): bool {
|
||||
for (var twoKey in two) {
|
||||
// The only case we haven't checked yet is keys that are in two but aren't
|
||||
// in one, which means they are different.
|
||||
if (one[twoKey] === undefined) {
|
||||
if (one[twoKey] === undefined && two[twoKey] !== undefined) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user