title: Typescript looping through class type properties
body: <p>How can one loop through the properties of a class in TypeScript?
  Take the following class for example:</p>
  
  <pre class="lang-js prettyprint-override"><code>export class Task implements Itask {
    public Id: number = 0;
    public Name: string;
    public Description: string;
    public Completed: boolean = false;
    public TaskType: TaskType;
  }
  </code></pre>
  
  <p>Im want to retrieve the properties, hence: ["Id", Name", "Description", "Completed", "TaskType"]</p>
  
  <p>Tried </p>
  
  <pre class="lang-js prettyprint-override"><code>GetTaskHeaders = () =&gt; {
    const _self = this;
    const tHead = $('&lt;thead /&gt;').append('&lt;tr /&gt;');
  
    for (let i = 0; typeof TodoApp.Task.arguments; i++) {
      const th = $('&lt;th /&gt;');
      th.append(TodoApp.Task.arguments[i]);
      tHead.append(th);
    }
  
    console.log(tHead);
  
    return tHead;
  };  
  </code></pre>
  
  <p>Unfortunately without success, i know using "TodoApp.Task.arguments" is incorrect. 
  However, can someone show me the right way please?</p>