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 am a little unclear on whether the mapValues function is called for skipped lines.
I assumed that it would not be called for skipped lines, but when writing some tests it seems like the mapValues function is being called for a skipped line.
I think it's fair to assume that the mapValues function would skip the number of lines defined by the skipLines option.
If this is not the intent, and you don't agree that it's fair to assume that the mapValues function would not be run on skipped lines, then please close this ticket.
If it is the intent of the parser to skip these lines then either I am doing something wrong or there's a bug.
If the library was designed to run the mapValues function on skipped lines but you agree that it is a fair assumption that it shouldn't, then we should update the documentation to let users know that mapValues will be run on skipped lines.
Thanks!
The text was updated successfully, but these errors were encountered:
Documentation Is:
Please Explain in Detail...
I am a little unclear on whether the
mapValues
function is called for skipped lines.I assumed that it would not be called for skipped lines, but when writing some tests it seems like the mapValues function is being called for a skipped line.
My test data:
My
csv-parser.Options
:The error I see in my
mapValues
function when I run my tests.Your Proposal for Changes
I think it's fair to assume that the
mapValues
function would skip the number of lines defined by theskipLines
option.If this is not the intent, and you don't agree that it's fair to assume that the
mapValues
function would not be run on skipped lines, then please close this ticket.If it is the intent of the parser to skip these lines then either I am doing something wrong or there's a bug.
If the library was designed to run the
mapValues
function on skipped lines but you agree that it is a fair assumption that it shouldn't, then we should update the documentation to let users know thatmapValues
will be run on skipped lines.Thanks!
The text was updated successfully, but these errors were encountered: