function addListRow(table, celltype, cols) {
  let tr = document.createElement('tr');
  for (let col of cols) {
    let cell = document.createElement(celltype);
    if (col)
      cell.appendChild(col);
    tr.appendChild(cell);
  }
  table.appendChild(tr);
}
// added as children of each table cell if they are non-null.
added as children of each table cell if they are non-null.
added as children of each table cell if they are non - null .
function addListRow(table, celltype, cols) {
  let tr = document.createElement('tr');
  for (let col of cols) {
    let cell = document.createElement(celltype);
    if (col)
      cell.appendChild(col);
    tr.appendChild(cell);
  }
  table.appendChild(tr);
}
function addListRow ( table , celltype , cols ) { let tr = document . createElement ( 'tr' ) ; for ( let col of cols ) { let cell = document . createElement ( celltype ) ; if ( col ) cell . appendChild ( col ) ; tr . appendChild ( cell ) ; } table . appendChild ( tr ) ; }
added as children of each table cell if they are non-null.
added as children of each table cell if they are non - null .