src/conversion/view-v1-to-v2.js
function rowsToCells (rows) {
  if (!rows) {
    return {}
  }

  const children = rows
    .map((row) => {
      return {
        children: _.map(row, convertCell)
      }
    })

  return {
    children
  }
}
function rowsToCells (rows) {
  if (!rows) {
    return {}
  }

  const children = rows
    .map((row) => {
      return {
        children: _.map(row, convertCell)
      }
    })

  return {
    children
  }
}
function rowsToCells ( rows ) { if ( ! rows ) { return { } } const children = rows . map ( ( row ) => { return { children : _ . map ( row , convertCell ) } } ) return { children } }
Converts rows of v1 cells to v2 cells. Simplifies the row structure when possible.

@param {Array<object>[]} rows A set of rows to convert
@returns {object} A v2 cell
Converts rows of v1 cells to v2 cells . Simplifies the row structure when possible .