test-console-table.html (490B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>Simple webconsole test page</title> 6 </head> 7 <body> 8 <p>console.table() test page</p> 9 <script> 10 /* exported doConsoleTable */ 11 "use strict"; 12 13 function doConsoleTable(data, constrainedHeaders = null) { 14 if (constrainedHeaders) { 15 console.table(data, constrainedHeaders); 16 } else { 17 console.table(data); 18 } 19 } 20 </script> 21 </body> 22 </html>