方法一:数组本身自带的方法
let arr = []
Array.isArray(arr)
//true
方法二:Object.prototype.toString.call()
Object.prototype.toString.call(arr) === '[object Array]'
//true
方法三:proto
arr.__proto__ === Array.prototype
//true
方法四:判断__proto__是否含有数组中的方法
arr.__proto__.push !== undefined
//true
方法五:instanceof,但是这种存在缺陷
arr instanceof Array
//true