For this method to yield a Boolean true value, the property named in the argument must exist and must belong to the receiving object. If the property is inherited from a prototype or earlier ancestor then this method returns false.
This method would be useful if it could test for the existence of a property in the inheritance chain. There is an internal HasProperty() method but the ECMA standard indicates that it is not exposed to the script interface.
See also: | HasProperty() |
Prev | Home | Next |
Object.eval() | Up | Object.isPrototypeOf() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |