i am missing something exceedingly obvious, but it appears on my chrome browser Version 103.0.5060.134 (Official Build) (64-bit) the final entry is missing:
const objectTest = { 'one' : 'this is object one' , 'two' : 'this is object two' , 'three' : 'this is object three' } ;
console.table (objectTest) ; // appears to skip the final entry
console.log(objectTest.three) ; // final entry is available
what must i do to get console.table
to display the last entry?
i would like to start using console.table
in addition to JSON.stringify
but only if i can get it working properly.
What's even more peculiar to me is that firefox seems to work correctly.
EDIT: its working fine on chrome 100-102 and chrome 104-105. its just appears to be not working properly on chrome 103. i tried this out on browserstack.
but again, i am assuming that i am doing something incorrect.
CodePudding user response:
I can reproduce in Chrome 103.0.5060.134:
However, as you can see, the last entry is not really missing, it's just hidden beneath that unnecessary horizontal scrollbar. If you select the text in the table, you can still copy it and also spot the selection:
The bug has already been reported at least twice: Issue 1346599: unnecessary scroll bars in console.table obscure content and Issue 1347572: console.table() displays a horizontal scrollbar overlaying the last table row.