How do i unset an array in javascript? i just want to empty it - so it has nothing in it keys or anything
you can assign a new array to it:
var array = ["element1","element2","element3"];
...
array = new Array();
OR
array = [];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With