I am looking to efficiently create multiple instances of variables and assign values in a single statement, an example of which is shown below.
this.myList1[data.id] = data.id + "-" + data.desc;
this.myList2[data.id] = data.id + "-" + data.desc;
this.myList3[data.id] = data.id + "-" + data.desc;
this.myList4[data.id] = data.id + "-" + data.desc;
this.myList5[data.id] = data.id + "-" + data.desc;
this.myList6[data.id] = data.id + "-" + data.desc;
Could someone provide guidance on the best approach to achieve this using Typescript?