In JavaScript, console.table is a very useful utility that pretty prints the input data.
Example:
console.table(["apples", "oranges", "bananas"]);
You would get something like this in the console:

Many times I find myself adding empty spaces to my Solidity console.log statements just so that I can see the outputs aligned on the vertical axis.
It would be nice to have a helper function that creates a table with ASCII characters (e.g. -) and auto-indents the outputs for us.
In JavaScript, console.table is a very useful utility that pretty prints the input data.
Example:
You would get something like this in the console:
Many times I find myself adding empty spaces to my Solidity
console.logstatements just so that I can see the outputs aligned on the vertical axis.It would be nice to have a helper function that creates a table with ASCII characters (e.g.
-) and auto-indents the outputs for us.