Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc09d7e

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
doc: remove console.table() as inspector-dependent
`console.table()` is implemented in Node.js core and no longer requires the inspector for use. PR-URL: #20346 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
1 parent ab13f13 commit cc09d7e
Copy full SHA for cc09d7e

File tree

Expand file treeCollapse file tree

1 file changed

+0
-15
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-15
lines changed
Open diff view settings
Collapse file

β€Ždoc/api/console.mdβ€Ž

Copy file name to clipboardExpand all lines: doc/api/console.md
-15Lines changed: 0 additions & 15 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -364,19 +364,15 @@ console.table(Symbol());
364364

365365
console.table(undefined);
366366
// undefined
367-
```
368367

369-
```js
370368
console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
371369
// β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”
372370
// β”‚ (index) β”‚ a β”‚ b β”‚
373371
// β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€
374372
// β”‚ 0 β”‚ 1 β”‚ 'Y' β”‚
375373
// β”‚ 1 β”‚ 'Z' β”‚ 2 β”‚
376374
// β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”˜
377-
```
378375

379-
```js
380376
console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
381377
// β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”
382378
// β”‚ (index) β”‚ a β”‚
@@ -495,17 +491,6 @@ current JavaScript CPU profiling session if one has been started and prints
495491
the report to the **Profiles** panel of the inspector. See
496492
[`console.profile()`][] for an example.
497493

498-
### console.table(array[, columns])
499-
<!-- YAML
500-
added: v8.0.0
501-
-->
502-
* `array` {Array|Object}
503-
* `columns` {string[]} Display only selected properties of objects in the
504-
`array`.
505-
506-
This method does not display anything unless used in the inspector. Prints to
507-
`stdout` the array `array` formatted as a table.
508-
509494
### console.timeStamp([label])
510495
<!-- YAML
511496
added: v8.0.0

0 commit comments

Comments
0Β (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.