发布网友
共1个回答
热心网友
判断是否是数组
1
Array.isArray(arrayInstance);
判断是否是对象
1
Object.prototype.toString.call(objectInstance) === '[object object]'