I have an array of javascript objects, each of which is created using "new". In case of an error, I would like to clear the entire array so that it is a GC'ed JS engine. To this end, is it enough to just set the array variable to "null" or do I need to combine all the elements from the array and set them to null before setting the array variable to "null"?
The reason I ask is because in Firefox, which I displayed (console.log), the array before assigning it to zero, and the display object (which is usually updated on the display, which I assume, even later), still showing the elements of the array when I inspect it later, so I doubt that the elements are actually free or not.
TIA
source share