How do i unset an array in javascript? i just want to empty it - so it has nothing in it keys or anything
+1
A:
you can assign a new array to it:
var oldArray =["element1","element2","element3"];
...
oldArray = new Array();
marcos
2010-03-21 10:28:12
+1
A:
What about delete?
delete array
Or to delete a single index:
delete array[x]
James Brooks
2010-03-21 10:32:51