Skip to content

Instantly share code, notes, and snippets.

@rezonn
Created November 10, 2021 15:06
Show Gist options
  • Save rezonn/17d06c0ebe05e0b4a0d17a03bbe7e2c6 to your computer and use it in GitHub Desktop.
Save rezonn/17d06c0ebe05e0b4a0d17a03bbe7e2c6 to your computer and use it in GitHub Desktop.
show_object.js
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