js判断参数是否是一个数组

判断参数是否是一个数组:
Object.prototype.toString.call(arr) === '[object Array]'

原文地址:https://www.cnblogs.com/dongyuezhuang/p/11544644.html