[thelist] Re: Javascript empty array question

josh evolt at efeingold.com
Mon Jan 28 09:32:01 CST 2002


> if (errormessage.length)
>  // array has content

So if I am looking for the array to be empty, I would use:

if (!errormessage.length)
 // array is empty

Thanks,
Josh




More information about the thelist mailing list