From d225fa3d2b93124c5c646abc161823e38f155223 Mon Sep 17 00:00:00 2001 From: Evan Seguin Date: Thu, 7 May 2015 11:34:16 -0700 Subject: [PATCH] adding an undefined check to the isSame function --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index e8018ea..41d6368 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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); }