Skip to content

console.table not operating as documented (Windows 10)Β #20345

@BurtHarris

Description

@BurtHarris
  • v10.0.0:
  • Microsoft Windows [Version 10.0.17133.73] 64-bit:
  • console:

Repl demo using sample from docs:

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

Expected a three column table with headings ['(index)', 'a', 'b'], per docs:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    consoleIssues and PRs related to the console subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions