I'm just learning about the existence of the .instance property of JS classes, which appears to return the previous instance (?) of the class.
However, I'm having trouble finding documentation about this particular property. Searches for "javascript class .instance property" seem to be yielding information about class instances instead.
Where can I read about how this property works? Can anyone point me to good documentation?
I discovered it while researching single instance classes (singletons) from this article. Looks quite useful, but I would like to know the details.