Ohm-Management - Projektarbeit B-ME
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.

drawRow.js.flow 356B

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. };