Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function transformAReportIntoASheet(report: ExportReport): WorkSheet {
const cells = transformSectionsIntoSheetRows(report.sections);
const worksheet = utils.aoa_to_sheet(transformSectionsIntoSheetRows(report.sections));
worksheet["!cols"] = fitColumnWidthsToContent(cells);
worksheet["!merges"] = createMerges(cells);
return worksheet;
}