When creating a CSV
fast-csv supports a few row formats.
You can pass in object to any formatter function if your CSV requires headers the keys of the first object will be used as the header names.
You can also pass in your rows as arrays. If your CSV requires headers the first row passed in will be the headers used.
This is the least commonly used format but can be useful if you have requirements to generate a CSV with headers with the same column name (Crazy we know but we have seen it).