.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / node_modules / table / dist / padTableData.js
1 'use strict';
2
3 Object.defineProperty(exports, "__esModule", {
4   value: true
5 });
6
7 /**
8  * @param {table~row[]} rows
9  * @param {Object} config
10  * @returns {table~row[]}
11  */
12 exports.default = (rows, config) => {
13   return rows.map(cells => {
14     return cells.map((value, index1) => {
15       const column = config.columns[index1];
16
17       return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight);
18     });
19   });
20 };