判断变量是否是数组

Array.isArray(arr)

Array.prototype.isPrototypeOf(arr)

arr.constructor==Array

原文地址:https://www.cnblogs.com/AnnieShen/p/9253785.html