stringifyTableData.js 280 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. /**
  6. * Casts all cell values to a string.
  7. *
  8. * @param {table~row[]} rows
  9. * @returns {table~row[]}
  10. */
  11. exports.default = rows => {
  12. return rows.map(cells => {
  13. return cells.map(String);
  14. });
  15. };