DEV Community

Discussion on: Cool Console stuff: Easy object inspection

Collapse
 
dylanlacey profile image
Dylan Lacey

Yup! As long as you're logging the object directly. Append it to a string and (at least when I checked) you tend to get the results of toString. I've added an explicative example; Thanks for the catch!

(FWIW Console.assert (which inspired me to write this post, as part of a longer post ) seems to prefer returning the toString representation on the command line and was sometimes returning it in the browser... But of course, now I can't replicate it and I look Foolish On The Internet)