bahmutov / bahmutov/console.table

Enhancement : rotate/pivet table

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

Description

I was wondering if it would be possible to list the table in the other way,

``` javascript
console.table( [["a", "b", "c", "d"],["e", "f", "g", "h"]] );
```

current comes out

``` javascript
0 1 2 3
- - - -
a b c d
e f g h
```

would come out

``` javascript
0 | a e
1 | b f
2 | c g
3 | d h
```

This has come about because I have few tables with lots of data, rather than lots of tables with few data. I know with the table layout above it doesn't seem that needed. But when each one of those arrays holds 43 data, but there is only 4 lots of them, it gets hard to use.

![image](https://cloud.githubusercontent.com/assets/1384537/12815522/b61d05a4-cb3e-11e5-90ee-bd09f95e1d42.png)

This is a screenshot of 2 arrays with 43.
- Colin

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.