DEV Community

Discussion on: Singleton - Design Patterns meet the Frontend

Collapse
 
rbenzazon profile image
rbenzazon

hey, nice post, I want to ask you your opinion about the old school static getInstance() / constructor(){if(!allowInstanciation)throw(new Error())} model