Is there a way to tell if an array element does or does not have a value associated with it?
In PERL I would be able to: if (!defined($arr[p])) { $arr[p] = 0; }
Is there a similar assignment with JS? ?
[CODE]if (typeof arr[index] == "undefined"){arr[index] = 0;}[/CODE]
Help @JMRKER spread the word by sharing this article on Twitter...