19
Pro tip: Use console.table() instead of console.log() for arrays
I was debugging a list of 20 user objects last week and my console was a mess of nested objects I had to expand one by one. Then a coworker showed me console.table() which lays everything out in a clean grid format with headers and rows. It saved me at least 10 minutes of clicking around in DevTools. Anyone else have a simple console trick that made a big difference?
1 comments
Log in to join the discussion
Log In1 Comment
ryan_sanchez4d ago
Heard someone call it "Excel for devs" once, pretty accurate.
3