Open
Description
Hi Nathan,
Thanks for your excellent code. I am using it to read a CSV into my app from google sheets.
My issue is some of my fields have double quotes put around them by google sheets because the actual field contains commas.
e.g.
field1, "field 2, more field2, even more field2", field3
This seems to break the code somewhere in here I guess:
const values = row.split(delimiter);
const el = headers.reduce(function (object, header, index) {
object[header] = values[index];
Any ideas which bit is breaking? I guess it must be the 'split' function??
I'm a very average javascript coder :)
Thanks much!
Metadata
Metadata
Assignees
Labels
No labels