src/js/wwTableManager.js
function tableCellGenerator(amount, tagName) {
  const brHTMLString = '<br />';
  const cellString = `<${tagName}>${brHTMLString}</${tagName}>`;
  let tdString = '';

  for (let i = 0; i < amount; i += 1) {
    tdString = tdString + cellString;
  }

  return tdString;
}
function tableCellGenerator(amount, tagName) {
  const brHTMLString = '<br />';
  const cellString = `<${tagName}>${brHTMLString}</${tagName}>`;
  let tdString = '';

  for (let i = 0; i < amount; i += 1) {
    tdString = tdString + cellString;
  }

  return tdString;
}
function tableCellGenerator ( amount , tagName ) { const brHTMLString = '<br />' ; const cellString = ` ${ tagName } ${ brHTMLString } ${ tagName } ` ; let tdString = '' ; for ( let i = 0 ; i < amount ; i += 1 ) { tdString = tdString + cellString ; } return tdString ; }
Generate table cell HTML text
@param {number} amount Amount of cells
@param {string} tagName Tag name of cell 'td' or 'th'
@private
@returns {string}
Generate table cell HTML text