js 判断是否是数组

var arr = [];

Object.prototype.toString.arr([]) == '[object Array]';

原文地址:https://www.cnblogs.com/heqhbk/p/4730184.html