February 20th, 2011

How to empty a Javascript array

Posted in Code |

It’s easy:

MyArray.length = 0;

(Just a reminder to myself, since I’ve forgotten about this a few times …)

Leave a Reply