Update common.js

This commit is contained in:
GoToLoop 2018-02-10 16:46:26 -02:00 committed by GitHub
parent fbd46518c5
commit 8b2e74f6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {