Does removing object from array splice() method memory leak?

The objects in the array are stored by reference. If I remove the i-th element of the array myArray method.splice( i, 1 ), then the array removes the reference to the object. And what happens to the object itself? I suspect that it remains hanging in the memory.

As such an object when removing it from the array to kill meet? Or was he there did he will be removed as trash?
April 7th 20 at 15:50
2 answers
April 7th 20 at 15:52
Solution
Does not create
Thank you. - corine.Jones commented on April 7th 20 at 15:55
April 7th 20 at 15:54
Solution
The objects that are available, links are removed garbage collector
Thank you. - corine.Jones commented on April 7th 20 at 15:57

Find more questions by tags JavaScript