Inspecting objects when using prototype from firebug console


/ Published in: JavaScript
Save to your folder(s)

unless I can *see* inside its all a mystery...


Copy this code and paste it in your HTML
  1. Object.keys(this).each(function(item, index){
  2. var vals = Object.values(this)[index];
  3. console.log('\nkey: '+ item + '\nvalue:\n ' + vals);
  4. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.