block by mpmckenna8 9166197

Using console.table() to check out objects

Full Screen

So I’ve been objectifying data lately and when I’m trying to make it do stuff in a browser, especially with d3.js like in the example, all the nested tabs make those objects hart to read.

But with console.table() you get a nice view of your objects in a table in the Javascript Console!

Don’t know if it’s supported everywhere but works well for me in Chrome. If you open your JavaScript Console and reload the page hopefully you’ll see a nice table and not lots of errors like I usually see.

index.html

UNhcrPOC50.js