src/js/extensions/table/mergeCell.js
function _initCellData(targetRows, startColIndex, endColIndex) {
  const limitColIndex = endColIndex + 1;
  const targetCells = targetRows.map(rowData => rowData.slice(startColIndex, limitColIndex));

  [].concat(...targetCells).slice(1).forEach(cellData => {
    const {nodeName} = cellData;

    util.forEach(cellData, (value, name) => (delete cellData[name]));
    cellData.nodeName = nodeName;
  });
}
function _initCellData(targetRows, startColIndex, endColIndex) {
  const limitColIndex = endColIndex + 1;
  const targetCells = targetRows.map(rowData => rowData.slice(startColIndex, limitColIndex));

  [].concat(...targetCells).slice(1).forEach(cellData => {
    const {nodeName} = cellData;

    util.forEach(cellData, (value, name) => (delete cellData[name]));
    cellData.nodeName = nodeName;
  });
}
function _initCellData ( targetRows , startColIndex , endColIndex ) { const limitColIndex = endColIndex + 1 ; const targetCells = targetRows . map ( rowData => rowData . slice ( startColIndex , limitColIndex ) ) ; [ ] . concat ( ... targetCells ) . slice ( 1 ) . forEach ( cellData => { const { nodeName } = cellData ; util . forEach ( cellData , ( value , name ) => ( delete cellData [ name ] ) ) ; cellData . nodeName = nodeName ; } ) ; }
Initialize cell data of target rows.
@param {Array.<Array.<object>>} targetRows - target rows
@param {number} startColIndex - start column index
@param {number} endColIndex - end column index
@private
Initialize cell data of target rows .