javascript Object_Obj hasOwnProperty( )

hasOwnProperty( )NN 6 IE 5.5(Win) ECMA 3  

hasOwnProperty("propertyName")

  

Returns Boolean true if, at the time the current object's instance was created, its constructor (or literal assignment) contained a property with a name that matches the parameter value. A property assigned to an object via its prototype property is not considered one of the object's own properties.

 
Parameters
 
  • String containing the name of an object property.
 
Returned Value

Boolean value: true | false.


1401,Nickname,Homepage or email,Comments here,Add comment