When unparsing an object array, only the first object is used to autodetect the columns for the final csv. However, if the second object has fields the first doesn't, they'll be missing in the output.
One can certainly do this manually by tracking and building a set of unique fields, then passing it under config.columns. But it would obviously be nice if Papaparse can do this for us.
When unparsing an object array, only the first object is used to autodetect the
columns
for the final csv. However, if the second object has fields the first doesn't, they'll be missing in the output.One can certainly do this manually by tracking and building a set of unique fields, then passing it under
config.columns
. But it would obviously be nice if Papaparse can do this for us.