Use console.table to display js collections
If you have a big JavaScript collection and you want to view it in a tabular fashion use console.table
- Open dev tools
-
Type
console.table(my_collection)
You get a sortable, indexed table containing your collection. Very neat.