Last active
November 16, 2019 03:52
-
-
Save syuji-higa/5ea72d7340cac373add10b96560f0341 to your computer and use it in GitHub Desktop.
JavaScript - namespace
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
if (typeof APP !== 'undefined') { | |
throw new Error('namespace "APP" is already exists.') | |
} | |
window.APP = {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment