Last active
August 29, 2015 14:05
-
-
Save j03m/23c45904ca383c7eab29 to your computer and use it in GitHub Desktop.
hax all the things from the obj
This file contains 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 dump(obj){ | |
while(obj!==undefined){ | |
for(var key in obj){ | |
log("j03m: " + key + " is " + obj[key].toString()); | |
} | |
try{ | |
obj = Object.getPrototypeOf(obj); | |
}catch(e){ | |
obj = undefined; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment