2 * @param {table~row[]} rows
3 * @param {object} config
4 * @returns {table~row[]}
6 export default (rows, config) => {
7 return rows.map((cells) => {
8 return cells.map((value, index1) => {
9 const column = config.columns[index1];
11 return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight);