mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 17:06:52 +01:00
15 lines
356 B
Text
15 lines
356 B
Text
/**
|
|
* @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';
|
|
};
|