2.1.56 [ECMA-262-1999] Section, Object.prototype.hasOwnProperty (V)


When the hasOwnProperty method is called with argument V, the following steps are taken:

  1. Let O be #this object# __the result of calling ToObject passing the this value as the argument__.

  2. Call ToString(V).

  3. If O doesn't have a property with the name given by Result(2), return false.

  4. Return true.


Unlike [[HasProperty]] ([ECMA-262-1999] section, this method does not consider objects in the prototype chain.