code: function breakLine (lineOfText, maxLength) {
    const lines = []
    let currText = lineOfText
  
    while (currText) {
      if (currText.length <= maxLength) {
        lines.push(currText)
        break
      } else {
        let line = ''
        const words = currText.split(/\b/g)
        while (words.length && line.length + words[0].length < maxLength) {
          line += words.shift()
        }
        if (line) lines.push(line.trim())
        currText = words.join('')
      }
    }
  
    return lines
  }
docs: breakLine (lineOfText: string, maxLength: number): string[]