Preferred way to check object property is `null` or `undefined`
This question already has an answer here:
I reckon you'd use obj.hasOwnProperty(prop)
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty
链接地址: http://www.djcxy.com/p/22650.html