Skip to content

Commit

Permalink
doc: remove console.table() as inspector-dependent
Browse files Browse the repository at this point in the history
`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>
  • Loading branch information
Trott authored and MylesBorins committed May 4, 2018
1 parent ab13f13 commit cc09d7e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,19 +364,15 @@ console.table(Symbol());

console.table(undefined);
// undefined
```

```js
console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
// β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”
// β”‚ (index) β”‚ a β”‚ b β”‚
// β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€
// β”‚ 0 β”‚ 1 β”‚ 'Y' β”‚
// β”‚ 1 β”‚ 'Z' β”‚ 2 β”‚
// β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”˜
```

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

### console.table(array[, columns])
<!-- YAML
added: v8.0.0
-->
* `array` {Array|Object}
* `columns` {string[]} Display only selected properties of objects in the
`array`.

This method does not display anything unless used in the inspector. Prints to
`stdout` the array `array` formatted as a table.

### console.timeStamp([label])
<!-- YAML
added: v8.0.0
Expand Down

0 comments on commit cc09d7e

Please sign in to comment.