( table: Global.Table, headings: Headings, )
| 36 | ); |
| 37 | |
| 38 | const convertTableToTemplates = ( |
| 39 | table: Global.Table, |
| 40 | headings: Headings, |
| 41 | ): Templates => |
| 42 | table.map(row => |
| 43 | Object.fromEntries(row.map((value, index) => [headings[index], value])), |
| 44 | ); |