drawRow.js.flow 356 B

123456789101112131415
  1. /**
  2. * @typedef {Object} drawRow~border
  3. * @property {string} bodyLeft
  4. * @property {string} bodyRight
  5. * @property {string} bodyJoin
  6. */
  7. /**
  8. * @param {number[]} columns
  9. * @param {drawRow~border} border
  10. * @returns {string}
  11. */
  12. export default (columns, border) => {
  13. return border.bodyLeft + columns.join(border.bodyJoin) + border.bodyRight + '\n';
  14. };