I've read this post and my question is a follow-up to it but I didn't see anyway to post a follow-up question directly, so posting a new question related to it: Why is hasOwnProperty being invoked generically here?
I see the explanation of why to call Object.prototype.hasOwnProperty(myObj) instead of myObj.hasOwnProperty - the 2nd point (from user zzzzBov) of objects being created by user supplied strings was the strongest point for me. HOWEVER. If we are going to worry about that, then why aren't we also equally worried about the other methods of Object.prototype being (accidentally?) overridden? Like isPrototypeOf? I've only seen recommendations regarding hasOwnProperty, nothing about the others, in Axel's book as well as other places.