Sha256: e6423661a8b51ce6a2995d6bde2a000f7282b82ed47c624b1c6936ef082a661c
Contents?: true
Size: 374 Bytes
Versions: 23
Compression:
Stored size: 374 Bytes
Contents
import _ from 'lodash'; /** * @todo Make it work with ASCII content. * @param {table~row[]} rows * @param {Object} config * @returns {table~row[]} */ export default (rows, config) => { return rows.map((cells) => { return cells.map((content, index) => { return _.truncate(content, { length: config.columns[index].truncate }); }); }); };
Version data entries
23 entries across 23 versions & 1 rubygems