Created
February 18, 2017 10:20
-
-
Save richard512/ac39114f0a5a941e1fdfdce9e337e18b to your computer and use it in GitHub Desktop.
show all js global variables
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
(function () | |
{ | |
var keys=Object.keys( window ); | |
for (var i in keys) | |
{ | |
if (typeof window[keys[i]] != 'function') | |
console.log(keys[i], window[keys[i]]); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment