ES3.1 Object static methods rationale document
Garrett Smith
dhtmlkitchen at gmail.com
Wed Jul 16 13:33:29 PDT 2008
On Wed, Jul 16, 2008 at 1:16 PM, Allen Wirfs-Brock
<Allen.Wirfs-Brock at microsoft.com> wrote:
> -----Original Message-----
> From: Brendan Eich [mailto:brendan at mozilla.org]
>
> Right now, the best I can come up with is that it should be a relatively efficient way to test for the existence of a possibly inherited property.
The "in" operator tests for the existence of a possibly inherited property.
var hasProp = (p in o);
Garrett
More information about the Es4-discuss
mailing list