Created
November 10, 2021 15:06
-
-
Save rezonn/17d06c0ebe05e0b4a0d17a03bbe7e2c6 to your computer and use it in GitHub Desktop.
show_object.js
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 show(obj) { | |
for (var x in obj) { | |
if (typeof(obj[x])!="function") { | |
try { console.log(x+" ="+obj[x]) } | |
catch(e) { console.log(x+"....") } | |
} | |
else console.log("function "+x) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment