问题:如何准确判断一个变量是否是数组?
答案: 方法1:使用Array.isArray() 方法2:使用Object.prototype.toString.call(arr) === '[object Array]'来进行判断