var arr=[1,2,3]
//1 Array.isArray()
console.log(Array.isArray(arr))
// 2 instanceOf
console.log(arr instanceof Array )
// 3 constuctor
console.log( arr.constructor.toString().indexOf('Array')!=-1)
// 4 Object.prototype.toString.call()
console.log( Object.prototype.toString.call(arr).indexOf('Array')!=-1)
// 5 Array.prototype.isPrototypeOf()
console.log(Array.prototype.isPrototypeOf(arr))
在浏览器打印