In this video we take a look at the potential alternative to the beloved console.log() method in JavaScript - this is the console.table() method used for visualising your arrays and objects in a format of a table!
Rather than displaying objects and arrays in a traditional expandable component, console.table() shows a visual table instead, making it easy to see smaller sized data collections.
As of right now I believe this method only works on objects and arrays but please let me know in the comments if it has worked for you on other types (or in other browsers).
Support me on Patreon:
https://www.patreon.com/dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/API/Console/table
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!