title: Typescript filter method
body: <p>In my angular 2 application I have declared 2 object arrays.</p>
  
  <pre><code>users: User[];
  selectedUsers: User[];
  </code></pre>
  
  <p>Now I am using the <code>filter()</code> method to return an array with objects whose checked property is true.</p>
  
  <pre><code>this.selectedUsers = this.users.filter(user =&gt; user.isChecked == true);
  </code></pre>
  
  <p>The problem is the references for elements of both arrays are same.
  So is there a way to that I can filter out objects and return array of new objects(new reference)?</p>