I have a opt variable in Typescript
let opt = [{}];
if I want to add multiple children to opt variable to below exsample with for loop
options = [
{ name: "option1", value: 1 },
{ name: "option2", value: 2 }
]
how can I coding
for(i=0; i<=5; i++) {
...
}