Yes, this is completely normal, because garbage collection is performed when there is no further reference to the object. You can also find the size of the array using the lengthinside ( arr.length) or outside (e.g. aFoo.func().length) method.
source
share