Created
April 2, 2019 14:03
-
-
Save typeofweb/a8e5ea46bc07806a478cd0739d544d70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Singleton { | |
private constructor() { } | |
private static instance = new Singleton(); | |
public static getInstance() { | |
return this.instance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment