Today I Learned

hashrocket A Hashrocket project

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

  1. Open dev tools
  2. Type console.table(my_collection)

You get a sortable, indexed table containing your collection. Very neat.

See More #javascript TILs
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.