![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archive'in' operator and feature detection technique...
From: Luke Matuszewski <matuszewski.lukasz@gmail.com>
Date: Thu Feb 09 2006 - 17:09:08 CET
We all know that feature detection technique works from very beggining
if(document.write) {
}
We could do that for all of objects, so i have been surprised when i
if("write" in document) {
}
So i have questioned myself what for ? I can always do:
if(document["write"]) {
}
or even
if(document[prop]) {
}
which is supported better then 'in' operator ('in' is supported since
B.R.
|