How to destroy a JavaScript object?

You could put all of your code under one namespace like this: Using the delete keyword will delete the reference to the property, but on the low level the JavaScript garbage collector (GC) will get more information about which objects to be reclaimed. You could also use Chrome Developer Tools to get a memory profile of your … Read more