Created
August 15, 2014 20:18
-
-
Save dustintheweb/67734b6bc8907ddee7e9 to your computer and use it in GitHub Desktop.
Javascript - Show All Global Variables Assigned to a Specific 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
for(var g in window) { | |
if(window.hasOwnProperty(g)) console.log(g); | |
} | |
// replace window with custom namespace if needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment