JavaScript pattern - the “singleton file”
The other day I came across the solution to a number of problems I’d had in the
past.
I imagine it’s probably obvious to anyone who’s been doing JavaScript for a
while, but since it took a while to dawn on me I thought I’d try