E582 doc: remove console.table() as inspector-dependent · nodejs/node@cc09d7e · GitHub
[go: up one dir, main page]

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

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

doc/api/console.md

Lines changed: 0 additions & 15 deletions
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