TIL about console.count and console.table
POSTED ON:
TAGS: debug javascript
We know about our good friend console.log
.
Meet console.count
(and the support console.countReset
)
These two methods are used to set and clear a counter of how many times a particular string gets logged in the console:
Also meet console.table
This particular method is incredibly useful to describe an object or array content in a human-friendly table:
Related TILs
Tagged: debug