Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion secret/console-output-data-as-a-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tags:

<p>To give the table custom column names, property names must be assigned to the elements in the object. Likewise, custom values for the <code>(index)</code> column can be set by naming each set of properties.</p>

<p>There is an optional second argument which allows you to explicity specify which columns to output. <code>console.table({"London":{population:8173194, country:"UK", elevation:"24m"},"New York":{population:8336697, country:"USA", elevation:"10m"}},["population", "country"])</code> will output the following.</p>
<p>There is an optional second argument which allows you to explicity specify which columns to output. <code>console.table({"London":{population:8173194, country:"UK", elevation:"24m"},"New York":{population:8336697, country:"USA", elevation:"10m"}},["population", "country", "elevation"])</code> will output the following.</p>

<div class="chrome image"><img src="/assets/img/placeholder.gif" data-src="/assets/img/secrets/chrome-table-custom-headings.png" /></div>