//判斷是不是數組function isArray(obj) { return Object.prototype.toString.call(obj) === '[object Array]'; } 數組