Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why is `console.table` skipping the last property?

I have a very simple object, but the table is just never printed fully in Chrome devtools:

console.table({
  "ClassMethod#set": {
    "checked": 0,
    "unchecked": 0
  },
  "ClassMethod#get": {
    "checked": 0,
    "unchecked": 0
  },
  "ClassMethod#constructor": {
    "checked": 0,
    "unchecked": 0
  },
  "ClassMethod#method": {
    "checked": 0,
    "unchecked": 0
  },
});

The output is:

chrome devtools

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Why does it only print three rows, when given four?

It is not a "three-limit", I can just print more, but it always lacks the last one:

enter image description here

>Solution :

Chrome it appears to be buggy, always showing one line less than specified (also with only one row).


You can track the open issue here on bugs.chromium.org

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading