检测对象是否为数组 instanceof
[1,2] instanceof Array //trueArray.isArray([1,2]) //trueObject.prototype.toString.apply([]); === “[object Array]”;Object.prototype.toString.apply(function(){}); === “[object Funct...