Typescript : how to loop through enum values for display in radio buttons? : <p>What is the proper way to loop through litterals of an enum in Typescript ?
(Currently using typescrip 1.8.1)</p>

<p>I've got the following enum :</p>

<pre><code>export enum MotifIntervention {
    Intrusion,
    Identification,
    AbsenceTest,
    Autre
}

export class InterventionDetails implements  OnInit
{
constructor( private interService: InterventionService )
{
    let i:number = 0;
    for (let motif in MotifIntervention) {
        console.log( motif );
    }
}
</code></pre>

<p>The result displayed is a list</p>

<pre><code>0
1
2
3
Intrusion,
Identification,
AbsenceTest,
Autre
</code></pre>

<p>I do want only 4 iterations in the loop as there are only 4 elements in the enum, I don't want to have 0 1 2 and 3 that seem to be index numbers of the enum.</p>
