essential-js-design-patterns icon indicating copy to clipboard operation
essential-js-design-patterns copied to clipboard

Singleton code example simplification

Open svenheden opened this issue 9 years ago • 0 comments

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.

svenheden avatar Aug 02 '15 09:08 svenheden