Transforms CSV text from string to an array of objects, each representing a
row in the CSV.
By default number-like values (2, 2.1E5, etc.) will be parsed into number types
rather than string. All other values will remain string. See stringColumns
parameter for adjusting this behavior.
Empty values (",," in the CSV) will be parsed as null.
Returns
Parsed CSV rows.
Parameters
csvText: string
CSV text to parse.
stringColumns: string[] = []
A list of columns that should be preserved with their raw
string values (without trying to coerce number-like values into numbers).
Transforms CSV text from string to an array of objects, each representing a row in the CSV.
By default number-like values (2, 2.1E5, etc.) will be parsed into
number
types rather thanstring
. All other values will remainstring
. SeestringColumns
parameter for adjusting this behavior.Empty values (",," in the CSV) will be parsed as
null
.Returns
Parsed CSV rows.