Glossary: Software Design Patterns in JavaScript
Singleton
A class that allows only one instance and hands everyone that same instance. In JavaScript an ES module already behaves this way, so its exported values are shared.
Glossary: Software Design Patterns in JavaScript
A class that allows only one instance and hands everyone that same instance. In JavaScript an ES module already behaves this way, so its exported values are shared.