Question: has own property vs in?
Answer: A good rule of thumb is that if you're looking to see whether an object has a property, you should use hasOwnProperty() . If you're looking to see if an object has a function that you intend to call, like checking if an object has toString() , you should use in .