Add option to expressive output to switch between tostring'd and actual value

I have a testing module which returns a table that, when converted to a string, prints detailed results in a human readable format. The output displays this as expected:

I would also like to inspect the content of the same table, but the output gives no option to do this. My current solution, as presented in the example, is to recursively remove every metatable, then print the table again.

To make this easier, I propose to add an option that switches between displaying the actual value and its tostring’d result.

6 Likes