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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -