javascript - If I use "array.splice()", are the removed elements deleted from memory? -


i'm writing functions remove elements arrays. i'm using splice this, , working fine. however, not 100% sure whether or not splice removes removed elements memory, or if still instantiated somewhere unaware of.

does know 1 way or another? if not remove memory, should along lines of:

delete array[index]; array.splice(index,1); 

if there no other references objects within system, removed.

but if have active reference object somewhere in code not removed.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -