Skip to content

Commit 78e0f91

Browse files
A step-by-step account of creating singletons.
So far it's just an empty function that returns an empty object.
1 parent df5d491 commit 78e0f91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

singleton.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var singleton = function () {
2+
3+
return {};
4+
}();

0 commit comments

Comments
 (0)