DEV Community

loading...

Discussion on: Singleton Pattern in Javascript

Collapse
devdufutur profile image
Rudy Nappée

With ES6 modules you have ready to use singletons 😉

Collapse
bibekkakati profile image
Bibek Author

Yeah, we can achieve same thing with modularisation approach but if you want to go with a standard design pattern then Singleton is there 😁.

Forem Open with the Forem app