re: Singleton in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: how to destroy a created singleton instance
 

Hello Gudla,

You don't. Singleton, by design, is a single instance entity, so destroying it in one place would affect all the code that uses it. If you need destructible instances, don't use singletons.

code of conduct - report abuse