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?