Create hasOwnProperty equiv
-
John-David Dalton
3.1 Draft
4.3.29 "Own Property" An own property of an object is a property that is directly present on that object. 4.3.30 "Inherited Property" An inherited property is a property of an object that is not one of its own properties but is a property (either own or inherited) of the object’s prototype.2.62 spec
... First the object mentioned directly is examined for such a property; if that object contains the named property, that is the property to which the reference refers; if that object does not contain the named property, the prototype for that object is examined next; and so on.isOwnProperty()containsProperty()isDirectProperty()isOwnProperty()is close tohasOwnProperty(), but according to spec 3.1,isOwnPropertyis probably more correct because its a type of property "Own Property" vs "Inherited Property". -
John-David Dalton
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.