Is there a way to insert values from an array into separate cells in exceljs?
I attempted the following approach:
const columns = ['string', 'string2', 'string3'];
for(let i=0; i < columns.length; i++) {
workSheet.getRow(1).values = [dto.columns[i]];
}
However, this code only adds one item from the columns
list :/
Does anyone have a suggestion on how to solve this issue? I need to add objects from the array individually, not as a group like this:
workSheet.getRow(1).values = ['string','string2', 'string3'];
This method does not suit my requirements :( Appreciate any assistance