From 8b2e74f6fb880021a364685e21e798281f4010a4 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 10 Feb 2018 16:46:26 -0200 Subject: [PATCH] Update common.js --- src/dat/utils/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/utils/common.js b/src/dat/utils/common.js index 0a6e655..5cdaa84 100644 --- a/src/dat/utils/common.js +++ b/src/dat/utils/common.js @@ -132,7 +132,7 @@ const Common = { //isArray: Array.isArray || function(obj) { isArray: function(obj) { //return obj.constructor === Array; - return obj && obj.length >= 0 && typeof obj === 'object'; + return obj != void 0 && obj.length >= 0 && typeof obj === 'object'; }, isObject: function(obj) {