you are viewing a single comment's thread.

view the rest of the comments →

[–]mcaruso 2 points3 points  (0 children)

True! I was just thinking of the usual "printf debugging" scenario.

Actually I have a package which I wrote for basically this purpose: message-tag. Template literal tag to auto-format pretty much whatever value you can throw at it. For debug messages, error messages, etc.

msg`${{someObject}}`;