I just saw another neat console trick the other day that you could combine with console.table() as well.
console.table()
console.log({ myVariable }); // Same as { myVariable: 'whatever the variable value is' }
Now your logged values are named.
twitter.com/chriscoyier/status/132...
That's pretty cool as well thanks for showing it to me!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I just saw another neat console trick the other day that you could combine with
console.table()
as well.Now your logged values are named.
twitter.com/chriscoyier/status/132...
That's pretty cool as well thanks for showing it to me!