I'm currently working on creating an iterator using the .map() function, specifically in this way:
const csv = this.invoices
.map(data => ({
invoiceId: data.invoiceId,
invoiceDate: data.invoiceDate,
invoiceType: data.invoiceType,
amount: data.subtotal,
}));
Now, I am planning to export this array to a CSV file but require a blank line between each item. The CSV helper tool does not provide this functionality, so how can I go about inserting an empty object between every item within my csv array?