Javascript Reference
Categories: Object_Obj

javascript Object_Obj hasOwnProperty( )

@March 15, 2008, 1:22 a.m.
hasOwnProperty( )Firefox/Netscape/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.


Powered by Linode.