src/js/extensions/table/mergeCell.js
function _pickContent(targetRows, startColIndex, endColIndex) {
  const limitColIndex = endColIndex + 1;
  const cells = [].concat(...targetRows.map(rowData => rowData.slice(startColIndex, limitColIndex)));
  const foundCellData = cells.filter(({content}) => content && content !== BASIC_CELL_CONTENT);

  return foundCellData.length ? foundCellData[0].content : BASIC_CELL_CONTENT;
}
function _pickContent(targetRows, startColIndex, endColIndex) {
  const limitColIndex = endColIndex + 1;
  const cells = [].concat(...targetRows.map(rowData => rowData.slice(startColIndex, limitColIndex)));
  const foundCellData = cells.filter(({content}) => content && content !== BASIC_CELL_CONTENT);

  return foundCellData.length ? foundCellData[0].content : BASIC_CELL_CONTENT;
}
function _pickContent ( targetRows , startColIndex , endColIndex ) { const limitColIndex = endColIndex + 1 ; const cells = [ ] . concat ( ... targetRows . map ( rowData => rowData . slice ( startColIndex , limitColIndex ) ) ) ; const foundCellData = cells . filter ( ( { content } ) => content && content !== BASIC_CELL_CONTENT ) ; return foundCellData . length ? foundCellData [ 0 ] . content : BASIC_CELL_CONTENT ; }
Pick merger content from selected cells.
@param {Array.<Array.<object>>} targetRows - target rows
@param {number} startColIndex - start column index
@param {number} endColIndex - end column index
@returns {string}
@private
Pick merger content from selected cells .