From cc09d7ec5b280a7374e2eb3809fc6fb999dbab77 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 26 Apr 2018 16:35:48 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/20346 Reviewed-By: Vse Mozhet Byt Reviewed-By: Richard Lau Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Jon Moss --- doc/api/console.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/doc/api/console.md b/doc/api/console.md index 825ca28e28a537..d310a18fcba9f4 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -364,9 +364,7 @@ console.table(Symbol()); console.table(undefined); // undefined -``` -```js console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); // ┌─────────┬─────┬─────┐ // │ (index) │ a │ b │ @@ -374,9 +372,7 @@ console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); // │ 0 │ 1 │ 'Y' │ // │ 1 │ 'Z' │ 2 │ // └─────────┴─────┴─────┘ -``` -```js console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); // ┌─────────┬─────┐ // │ (index) │ a │ @@ -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]) - -* `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])