diff --git a/src/utils.js b/src/utils.js index 41d6368..dd17503 100644 --- a/src/utils.js +++ b/src/utils.js @@ -27,9 +27,11 @@ module.exports = { }, isSame: function (a, b) { - if (Array.isArray(a)) { + if (typeof a !== typeof b) { + return false; + } else if (Array.isArray(a)) { return !this.arraysDiffer(a, b); - } else if (typeof a === 'object' && a !== null && a !== undefined) { + } else if (typeof a === 'object' && a !== null) { return !this.objectsDiffer(a, b); }