Skip to content

Instantly share code, notes, and snippets.

@jessycormier
Created May 16, 2019 16:58
Show Gist options
  • Save jessycormier/36f3c1918133eaba2f0741e9df23a2f4 to your computer and use it in GitHub Desktop.
Save jessycormier/36f3c1918133eaba2f0741e9df23a2f4 to your computer and use it in GitHub Desktop.
Revealing Module Pattern
Thing = (function (window) {
function privateThing() { }
return {
exposedThing: privateThing,
}
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment