function _createTheadOrTbodyHtml(trs, wrapperNodeName) {
  let html = '';

  if (trs.length) {
    html = trs.map(tr => {
      const tdHtml = tr.map(_createCellHtml).join('');

      return `<tr>${tdHtml}</tr>`;
    }).join('');
    html = `<${wrapperNodeName}>${html}</${wrapperNodeName}>`;
  }

  return html;
}
function _createTheadOrTbodyHtml(trs, wrapperNodeName) {
  let html = '';

  if (trs.length) {
    html = trs.map(tr => {
      const tdHtml = tr.map(_createCellHtml).join('');

      return `<tr>${tdHtml}</tr>`;
    }).join('');
    html = `<${wrapperNodeName}>${html}</${wrapperNodeName}>`;
  }

  return html;
}
function _createTheadOrTbodyHtml ( trs , wrapperNodeName ) { let html = '' ; if ( trs . length ) { html = trs . map ( tr => { const tdHtml = tr . map ( _createCellHtml ) . join ( '' ) ; return ` ${ tdHtml } ` ; } ) . join ( '' ) ; html = ` ${ wrapperNodeName } ${ html } ${ wrapperNodeName } ` ; } return html ; }
Create html for thead or tbody.
@param {Array.<Array.<object>>} trs - tr list
@param {string} wrapperNodeName - wrapper node name like THEAD, TBODY
@returns {string}
@private
Create html for thead or tbody .
Create html for the table head or tbody