Loop add new record to array in typescript : <p>I have a opt variable in Typescript</p>

<pre><code>let opt = [{}];
</code></pre>

<p>if I want to add multiple children to opt variable to below exsample with for loop</p>

<pre><code>options = [
    { name: "option1", value: 1 },
    { name: "option2", value: 2 }
]
</code></pre>

<p>how can I coding</p>

<pre><code>for(i=0; i&lt;=5; i++) {
    ...
}
</code></pre>
