[Javascript] typeof

Andrew Dunn adunn at mail.interworx.com.au
Wed May 16 23:53:49 CDT 2001


Hi,
   I have a variable called nameID. This variable holds the name of another
variable which is an array. Sometimes the variable that is held in nameID is
non-exsistent ie. "undefined". How can I test this?

I've tried typeof(eval(nameID))) but that returns "object". I need a way to
see whether the variable that is held in nameID is exsistent. Can anyone
help me?

Thank you.

Andrew Dunn.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010517/818c39da/attachment.htm>


More information about the Javascript mailing list