This question already has answers here: Is there an equivalent for var_dump (PHP) in Javascript? (19 answers) Closed 4 years ago. I would like to see the structure of...
I’d like to capture the output of var_dump to a string. The PHP documentation says; As with anything that outputs its result directly to the browser, the output-control functions...