1. instanceof
let a=[1,2,3]
console.log(a instanceof Array)//true
2. Array.isArray()
let a = [1,2,3]
Array.isArray(a)//true
3.Object.prototype.toString.call(a);
let a = [1,2,3]
Object.prototype.toString.call(a)
1. instanceof
let a=[1,2,3]
console.log(a instanceof Array)//true
2. Array.isArray()
let a = [1,2,3]
Array.isArray(a)//true
3.Object.prototype.toString.call(a);
let a = [1,2,3]
Object.prototype.toString.call(a)