title: Angular2 removing duplicates from an JSON array
body: <p>I have a problem with filter in my JSON array when I move my app to Angular2 . In Angular 1.x that was easier. I used <code>'unique'</code> in filter and this remove all duplicates.</p>
  
  <p>apps:</p>
  
  <pre><code>{"app":"database_1",
   "host":"my_host1",
   "ip":"00.000.00.000"
  },
  {"app":"database_1",
   "host":"my_host1",
   "ip":"00.000.00.000"
  },
  {"app":"database_2",
   "host":"my_host2",
   "ip":"00.000.00.000"
  },
  {"app":"database_2",
   "host":"my_host2",
   "ip":"00.000.00.000"
  }
  </code></pre>
  
  <p>Part of html code:</p>
  
  <pre><code>    &lt;div *ngFor='#appsUnique of apps '&gt;
          &lt;div class="row dashboard-row"&gt;
              &lt;div class="col-md-2"&gt;
                 &lt;h4&gt;{{appsUnique.app }}&lt;/h4&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>And result is: </p>
  
  <pre><code>database_1
  database_1
  database_2
  database_2
  </code></pre>
  
  <p>I want to get result:</p>
  
  <pre><code>database_1
  database_2
  </code></pre>
  
  <p>How can I remove duplicates from an array?</p>