Sha256: 3cc83d80663bd74d72b3030bc6579a84186414616a19eea760b75f26689511a5
Contents?: true
Size: 428 Bytes
Versions: 43
Compression:
Stored size: 428 Bytes
Contents
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /** * @param {table~row[]} rows * @param {Object} config * @returns {table~row[]} */ exports.default = (rows, config) => { return rows.map(cells => { return cells.map((value, index1) => { const column = config.columns[index1]; return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight); }); }); };
Version data entries
43 entries across 43 versions & 1 rubygems