Answer the question
In order to leave comments, you need to log in
Why does hasOwnProperty() return false where it should be true?
jsfiddle.net/5kcvgtk7
Why, if you add a property in an instance of a class that shadows the inherited one, hasOwnProperty returns false, although the method description says that "hasOwnProperty() returns true only if the instance has a property with the specified name."
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question