code: function trimTrailingLines(value) {
    var val = String(value)
    var index = val.length
  
    while (val.charAt(--index) === line) {
      /* Empty */
    }
  
    return val.slice(0, index + 1)
  }
docs: /* Remove final newline characters from `value`.