![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: 'in' operator and feature detection technique...
From: Martin Honnen <mahotrash@yahoo.de>
Date: Thu Feb 09 2006 - 17:45:32 CET
Luke Matuszewski wrote:
> if("write" in document) {
> So i have questioned myself what for ? I can always do:
> I can only guess that 'in' was
The in operator checks whether there is a property with the name as the
Example
var testObject = {
var results = '';
for (var propertyName in testObject) {
results
yields
Boolean(obj["b"]): false
Boolean(obj["s"]): false
Boolean(obj["n"]): false
-- Martin Honnen http://JavaScript.FAQTs.com/Received on Mon May 1 03:12:22 2006 |