pointers - Deleting Objects in JavaScript - Stack Overflow
The delete command has no effect on regular variables, only properties. After the delete command the property doesn't have the value null, it doesn't exist at all.
If the property is an object reference, the delete command deletes the property but not the object. The garbage collector will take care of the object if it has no other references to it.
Read full article from pointers - Deleting Objects in JavaScript - Stack Overflow
No comments:
Post a Comment