Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is table() in Chrome Command Line API

In the Chrome Dev Tools console, there is a function called table, like so :

enter image description here

So I went to the Command Line API Reference, but did not find table there.

Does anybody know what it is and does ? Thanks

like image 229
Abderrahmane TAHRI JOUTI Avatar asked Feb 15 '23 16:02

Abderrahmane TAHRI JOUTI


1 Answers

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

like image 106
Álvaro González Avatar answered Feb 17 '23 12:02

Álvaro González