Skip to content

Commit cc09d7e

Browse 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 <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Jon Moss <[email protected]>
1 parent ab13f13 commit cc09d7e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

β€Ždoc/api/console.md

-15
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)