Do you use conosle.log() or console.table() to print your arrays and objects in a JavaScript project? Yes, we all use that but the way I have to open multidimensional arrays or objects in the console is kinda boring to me. I use an npm library to view all my arrays and object in a tree-like structure. This way I can clearly see all my arrays with the index and also the hierarchy of my objects. So let us see in this tutorial how to use that library for our next JavaScript project.

This tutorial assumes that you’re creating your next JavaScript project using npm packages. For example, nodejs, React, Angular, Vue, WebPack, gulp, parcel, etc.

#javascript #programming #web-development #developer

Tree View for Arrays and Objects in JavaScript
23.05 GEEK