mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 10:14:49 +00:00
Check if either array is null before diffing
Reviewed By: sebmarkbage Differential Revision: D3219392 fb-gh-sync-id: fd6ef2e2c2d7b661a06c857b25b007701340e20a fbshipit-source-id: fd6ef2e2c2d7b661a06c857b25b007701340e20a
This commit is contained in:
parent
860b7ddc35
commit
50d6de9448
@ -23,7 +23,7 @@ var merge = require('merge');
|
|||||||
// Diff Helpers
|
// Diff Helpers
|
||||||
|
|
||||||
function arrayDiffer(a, b) {
|
function arrayDiffer(a, b) {
|
||||||
if (a == null) {
|
if (a == null || b == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (a.length !== b.length) {
|
if (a.length !== b.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user