essential-js-design-patterns
essential-js-design-patterns copied to clipboard
Singleton code example simplification
This simplifies the singleton code example by comparing object references instead of random numbers.
This is just a proposal, I'm not 100% sure this makes the code example more clear, but maybe. :)
I think it shows the intent of the comparison in the end more, and the random number disclaimer is no longer needed.