用typeof obj ==='object' 判断obj是否是一个object。 事例代码 ```javascript var obj = { name: 'xiaoming' } function output(obj) { if (typeof obj === 'object') { console.log(obj.name); } else { console.log('obj is not a object'); } } output(obj); ``` 以上代码有缺陷吗?如果有改如何改进?