利用hasOwnProperty给数组去重的面试题分享 hasOwnPropertyhasOwnProperty是javascript中用于检测对象是否包含某个属性的方法,返回一个布尔值 hasownproperty()