2020-08-25 23:57:08 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
|
value: true
|
|
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
|
|
|
|
/**
|
2021-02-26 03:58:33 +00:00
|
|
|
* @typedef {object} drawRow~border
|
2020-08-25 23:57:08 +00:00
|
|
|
* @property {string} bodyLeft
|
|
|
|
* @property {string} bodyRight
|
|
|
|
* @property {string} bodyJoin
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {number[]} columns
|
|
|
|
* @param {drawRow~border} border
|
|
|
|
* @returns {string}
|
|
|
|
*/
|
|
|
|
const drawRow = (columns, border) => {
|
|
|
|
return border.bodyLeft + columns.join(border.bodyJoin) + border.bodyRight + '\n';
|
|
|
|
};
|
|
|
|
|
|
|
|
var _default = drawRow;
|
|
|
|
exports.default = _default;
|
|
|
|
//# sourceMappingURL=drawRow.js.map
|