title: Set a particular propert of all objects in an array in typescript
body: <p>I have the below studentList</p>
  
  <pre><code>private studentList:Array&lt;Student&gt;
  </code></pre>
  
  <p>The Student class has a many properties and one of the property is 'status'.
  How can i set this 'status' property to a particular value for all the Students in the StudentList array.</p>
  
  <p>I achieved this by doing forEach and setting it .</p>
  
  <p>Is there a better way of doing this? May be avoid the iteration .</p>