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
Post a Comment