Hey Guys..!! Found a cool debugging trick while working...So thought of sharing with you.. While debugging larger arrays in scripts, we need to open every collapsed object manually...which is quite annoying. So, to overcome this we can use 'console.table'. CONSOLE.TABLE display the data (in console) in a nice tabular form which is easy to read. Below are some features: 1. It can display tabular data for arrays and objects 2. You can restrict the rendering of column by adding a second parameter. For example: console.table(ceos, ['Column Name1','Column Name 2',....]); 3. Provides a better visualization of data with tables. - Study24x7
Social learning Network
58 followers study24x7 14 Apr 2020 08:13 PM study24x7 study24x7

Hey Guys..!! Found a cool debugging trick while working...So thought of sharing with you.. While debugging larger arrays in scripts, we need to open every collapsed object manually...which is quite annoying. So, to overcome this we can use 'console.table'. CONSOLE.TABLE display...

See more

Hey Guys..!!
Found a cool debugging trick while worki...
study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles