github-pages-deploy-action/node_modules/table/dist/drawRow.js.flow

16 lines
356 B
Plaintext
Raw Normal View History

2020-03-07 11:45:40 +08:00
/**
* @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';
};