score:1

const headerTitle = 'your header title here';
const sheet = XLSX.utils.json_to_sheet([{}], {
  header: [headerTitle],
});
XLSX.utils.sheet_add_json(sheet, data, { origin: 'A3' });
XLSX.utils.book_append_sheet(workbook, sheet);
XLSX.writeFile(workbook, 'fileName.xls');

Related Query

More Query from same tag