summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/table/dist/drawRow.js.flow
blob: 978eab2de19941361bbfe8566b1bdae636d25fc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * @typedef {object} drawRow~border
 * @property {string} bodyLeft
 * @property {string} bodyRight
 * @property {string} bodyJoin
 */

/**
 * @param {number[]} columns
 * @param {drawRow~border} border
 * @returns {string}
 */
export default (columns, border) => {
  return border.bodyLeft + columns.join(border.bodyJoin) + border.bodyRight + '\n';
};