Deno console.log() all items of array
Hey how can I enable all of the output, so that Deno does not cut of items?
6 Replies
Is there a flag to enable this?
I would loop over the array and then print all the values 1 by 1
If you only need to get a look of what it prints out, I suggest you to stringify the whole content and gave it a bit of spacing like this:
JSON.stringify(arrayToShow, null, 2)
If there is really not enough space to print it all, try to print it to a file
To get the exact formatting you can use
Deno.inspect
with some options (https://deno.land/api@v1.36.2?s=Deno.InspectOptions)
Deno
Deno.InspectOptions | Runtime APIs | Deno
Option which can be specified when performing {@linkcode Deno.inspect}.
This is what I was looking for! Thanks!