Skip to content

Commit

Permalink
doc: update to align console.table row to the left
Browse files Browse the repository at this point in the history
PR-URL: nodejs#50553
Refs: nodejs#50135
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
Reviewed-By: Deokjin Kim <[email protected]>
  • Loading branch information
Jungku Lee authored and anonrig committed Nov 9, 2023
1 parent 35caf44 commit 7ec6f7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,18 +420,18 @@ console.table(undefined);

console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
// ┌─────────┬─────┬─────┐
// │ (index) │ a │ b
// │ (index) │ a │ b
// ├─────────┼─────┼─────┤
//0 1 │ 'Y' │
//1 │ 'Z' │ 2
//01 │ 'Y' │
//1 │ 'Z' │ 2
// └─────────┴─────┴─────┘

console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
// ┌─────────┬─────┐
// │ (index) │ a
// │ (index) │ a
// ├─────────┼─────┤
//0 1
//1 │ 'Z' │
//01
//1 │ 'Z' │
// └─────────┴─────┘
```

Expand Down

0 comments on commit 7ec6f7d

Please sign in to comment.