Function: toCSV()
ts
function toCSV(rolls): string;Defined in: src/export.ts:160
Rolls as CSV for a spreadsheet: a header, then a row for each roll, lines ended CRLF as RFC 4180 has them. total is empty for dice that are only words; dice is each die as text (see diceText); faces is the bare faces thrown; held is which dice were held, counted from 1; set is 2/6 for the second roll of six.
Parameters
rolls
readonly Roll[]
Returns
string