Last active
July 24, 2017 02:25
-
-
Save ksomemo/7455a86d7bca12709d68 to your computer and use it in GitHub Desktop.
listOfUserDefinedFunctions
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
// http://stackoverflow.com/questions/493833/list-of-global-user-defined-functions-in-javascript | |
Object.keys(window).filter(function(x) | |
{ | |
if (!(window[x] instanceof Function)) return false; | |
return !/\[native code\]/.test(window[x].toString()) ? true : false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment