I have a simple csv where one cell is empty:
"category","name"
"blue","foo"
"red","bar"
,"baz"
I am reading the csv from file via
const workbook = XLSX.read(data, { type: 'string' })
The resulting sheet for workbook.sheets.sheet1 is:
A1: Object { t: "s", v: "category", w: "category" }
A2: Object { t: "s", v: "blue" }
A3: Object { t: "s", v: "red" }
B1: Object { t: "s", v: "name", w: "name" }
B2: Object { t: "s", v: "foo" }
B3: Object { t: "s", v: "bar" }
B4: Object { t: "s", v: "baz" }
Obviously A4 is missing, since it's not present, however I'd like to treat it as empty String "" but without manually fiddling the CSV file but during the parsing step.
I checked the parsing options but none from them seem to be helpful for that use case.
Is there a way to treat A4 as empty String?