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.
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!
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!