Quoted from the Apple JavsScript Coding Guidelines:
Use delete statements. Whenever you
create an object using a new
statement, pair it with a delete
statement. This ensures that all of
the memory associated with the object,
including its property name, is
available for garbage collection. The
delete statement is discussed more in
“Freeing Objects.”
This would suggest that you use a delete
command to then allow the garbage collector to free the memory allocated for your Array
when you're finished using it. The point that the delete
statement only removes a reference is worth noting in that it differs from the behaviour in C/C++, where there is no garbage collection and delete
immediately frees up the memory.