I am creating this js function:
export function convertArrayObjToFileDownload(data, filename, filetype = 'application/octet-stream') {
const blob = new Blob(data, { type: filetype });
downloadBlob(blob, filename);
}
data
is a custom object array, like {Client: 'My Bank', Tasks: 15, Charge Amount: '$300.00' }
.
I am trying to convert this object array to blob. The array could have hundreds of items.