[Question] Change output formatting
Opened this issue · 3 comments
Theeverydayman commented
Hey, is there a way to change the number of characters displayed in the output? [is there even a limit there?]
I'm having a weird issue - I'm creating a jagged array of 1s. How I imagine it should display it in the output [single line]:
[[1,1,1],[1,1,1],[1,1,1]]
or [multiple lines, one for each inner array]:
[
[1,1,1,1],
[1,1,1,1],
[1,1,1,1]
]
Instead it displays it like this:
[
[1,1,
1,1],
[1,1,
1,1]
]
Kind of looks like there's a set max line width of some sort in the output, or is there another reason it's cutting the inner arrays in half?
Here's the code:
let map : any[] = [];
for (let i = 0; i < 10; i++)
{
let row : number[] = [];
for (let j=0; j<10; j++)
{
row.push(1);
}
map.push(row);
row = [];
}
console.log(map);
lukehaas commented
@Theeverydayman what version of RunJS are you using?
Akawgan commented
Latest, at the time of writing (secondary gh)
lukehaas commented
I'm not able to replicate the issue. For me, the formatting looks like this:
[
1, 1, 1, 1, 1,
1, 1, 1, 1, 1
],