You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
356 B

4 years ago
  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. };