chinchang / chinchang/konsole.table

not handling arrays correctly

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Calling this:
`console.table(["apples", "oranges", "bananas"]);`

Results in:
```
'====================================================='
' (index) │ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │'
'-----------------------------------------------------'
' 0 │ "a" │ "p" │ "p" │ "l" │ "e" │ "s" │'
' 1 │ "o" │ "r" │ "a" │ "n" │ "g" │ "e" │'
' 2 │ "b" │ "a" │ "n" │ "a" │ "n" │ "a" │'
'====================================================='
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented console.table call with the three-string array and compare the generated output with the example. Trace how arrays are converted into table rows and columns. Done means each string remains a single array value rather than being displayed character by character.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.