1.实例的__proto__ 属性 非标准ie浏览器不支持标签:__,arr,prototype,console,log,几种,数组,Array,js From: https://www.cnblogs.com/Blogzlj/p/16739456.html
let arr = [1,2,3];
console.log('__proto__',arr.__proto__ === Array.prototype)
2.实例的 constructor
let arr = [1,2,3];
console.log('constructor',arr.constructor === Array)
3.instanceof
let arr = [1,2,3];
console.log('instanceof',arr instanceof Array)
4.Array.isArray() es6中用于判断数组的方法
let arr = [1,2,3];
console.log('isArray',Array.isArray(arr))
5.Object.prototype.toString.call
let arr = [1,2,3];
console.log('Object.prototype.toString',Object.prototype.toString.call(arr))