mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Update common.js
This commit is contained in:
parent
fbd46518c5
commit
8b2e74f6fb
@ -132,7 +132,7 @@ const Common = {
|
|||||||
//isArray: Array.isArray || function(obj) {
|
//isArray: Array.isArray || function(obj) {
|
||||||
isArray: function(obj) {
|
isArray: function(obj) {
|
||||||
//return obj.constructor === Array;
|
//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) {
|
isObject: function(obj) {
|
||||||
|
Loading…
Reference in New Issue
Block a user