[Javascript] checking to see if a variable exists

Chris Basken chriz at basken.com
Wed Mar 3 13:00:40 CST 2004


Am I losing it?  Is there a way to see if a variable exists or has been
declared or something?

You know, something like:

if (isDeclared(foo)) {...

or

if (foo.isDeclared()) {...

or something like that?






More information about the Javascript mailing list