How do I check if a (javascript) array value is empty or null

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-04-20T03:41:50Z Indexed on 2010/04/20 3:53 UTC
Read the original article Hit count: 314

Filed under:
|

Will this work for testing whether a value at position "index" exists or not, or is there a better way:

if(arrayName[index]==""){
     // do stuff
}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about array