1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Pretty Print Tabular Data as a chrome til

This commit is contained in:
jbranchaud
2016-03-17 18:30:17 -05:00
parent f1f6adcf7d
commit a6d2b17ff8
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
# Pretty Print Tabular Data
Looking at a bunch of data in the Chrome dev tools console isn't great. It
can be a bit difficult to read because of the way it is displayed.
Fortunately, the Chrome dev tools comes with a handy way of displaying
tabular data, `console.table()`. If you give `console.table` an array of
objects or array of arrays, it will format it in a table like the following:
![](http://i.imgur.com/LPgBpRB.png)