In the Chrome Dev Tools console, there is a function called table, like so :
So I went to the Command Line API Reference, but did not find table there.
Does anybody know what it is and does ? Thanks
I can only speculate it's a yet to be documented implementation of the analogue Firebug Console API method:
console.table(data[, columns])
Allows to log provided data using tabular layout. The method takes one required parameter that represents table-like data (array of arrays or list of objects). The optional columns parameter can be used to specify columns and/or properties to be logged (see more at softwareishard.com).
Some time after the original question, it's finally documented:
table(data[, columns])
Log object data with table by passing in a data object in with optional column headings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With