let arr = [];
let obj = {};
Object.prototype.toString.call(arr) === '[object Object]' //判断对象 返回true
Object.prototype.toString.call(obj) === '[object Array]' //判断数组 返回true
let arr = [];
let obj = {};
Object.prototype.toString.call(arr) === '[object Object]' //判断对象 返回true
Object.prototype.toString.call(obj) === '[object Array]' //判断数组 返回true