Sha256: 14227ef0ef815cf680075f4391219f8c014f2ae93c6fda19aa854bd819a3b037
Contents?: true
Size: 625 Bytes
Versions: 43
Compression:
Stored size: 625 Bytes
Contents
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * @todo Make it work with ASCII content. * @param {table~row[]} rows * @param {Object} config * @returns {table~row[]} */ exports.default = (rows, config) => { return rows.map(cells => { return cells.map((content, index) => { return _lodash2.default.truncate(content, { length: config.columns[index].truncate }); }); }); };
Version data entries
43 entries across 43 versions & 1 rubygems