You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recommend having an option that allows changing behavior in the event of duplicate headers. Something like useArraysForDuplicateHeaders as a boolean flag that defaults to false; this way it can maintain the existing behavior, with the use of arrays for duplicated headers being a feature.
Consider the simple file:
a,a,b
1,2,3
The row object in the data event's function looks like this:
{a: '2',b: '3'}
What I'd like to see, when this flag is enabled in the options, is this:
{a: ['1','2'],b: '3'}
Line 185 of index.js reads as follows:
o[header]=cell
This change to the writeRow function on line 185 will allow it to work as expected:
Expected Behavior
The parsed data should be maintained in an array of strings instead of a single string.
Actual Behavior
Only the last read value is maintained.
How Do We Reproduce?
The text was updated successfully, but these errors were encountered: