adding an undefined check to the isSame function

This commit is contained in:
Evan Seguin 2015-05-07 11:34:16 -07:00
parent 7ef6c51f1f
commit d225fa3d2b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}