Is there a function which can print a structure in deno/typscript similar to print_r in php ?
I would like to know which attributes and structure members a struct have and asked my self if there is something similar in deno/typscript to php https://www.php.net/manual/en/function.print-r.php
I use
deno 2.0.0-rc.5
.
Here the code which I use. The questioned line is this console.log(anchorTag.) //<= How to dump anchorTag?
1 Reply
just console.log should print its properties and methods. alternatively you can try console.logging the result of
Deno.inspect
, maybe with some of the options enabled