How to push values from array into row in exceljs?
i try with this:
const columns = ['string', 'string2', 'string3'];
for(let i=0; i < columns.length; i++) {
workSheet.getRow(1).values = [dto.columns[i]];
}
but this code add only one item from the columns
list :/
have anybody any idea how to resolve this problem? I must add objects from array, I know that, i can do this:
workSheet.getRow(1).values = ['string','string2', 'string3'];
but this is not for me :( thanks for any help