判断一个Object是否为数组Array的方法

1.constructor

constructor 属性是每个有原型对象的原型成员

arr.constructor == Array  //true说明arr是数组

2.isArray

arr.isArray()

3.length

4.prototype

原文地址:https://www.cnblogs.com/wong-do/p/8921464.html