stringifyTableData.js.flow 201 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/**
 * Casts all cell values to a string.
 *
 * @param {table~row[]} rows
 * @returns {table~row[]}
 */
export default (rows) => {
  return rows.map((cells) => {
    return cells.map(String);
  });
};