• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * @param {table~row[]} rows
3 * @param {Object} config
4 * @returns {table~row[]}
5 */
6export default (rows, config) => {
7  return rows.map((cells) => {
8    return cells.map((value, index1) => {
9      const column = config.columns[index1];
10
11      return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight);
12    });
13  });
14};
15