[thelist] Re: Javascript empty array question

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Jan 28 09:39: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

Yep, that's it.

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com




More information about the thelist mailing list