SOURCE

//Array.isArray()
let arr1=[1,2]
let num1=1
let obj1={}

console.log(Array.isArray(arr1))
console.log(Array.isArray(num1))
console.log(Array.isArray(obj1))

//原型链判断
console.log(arr1.__proto__===Array.prototype)
console.log(num1.__proto__===Array.prototype)
console.log(obj1.__proto__===Array.prototype)


//Array.prototype,isisPrototypeOf()
console.log(Array.prototype.isPrototypeOf(arr1))
console 命令行工具 X clear

                    
>
console