function getObj(obj){ var html = ''; for (var key in obj){ html += (key + ' -- > '+ typeof obj[key]); } return html; }
You Can test the function here. Select a default Object and you will see the object elements. If You are using firefox you may seem nothing when you select the document object.
No comments:
Post a Comment