[Solved] Angular Pipe to Hide Duplicates from Array

on your component please add a function to remove duplicates result:any=[]; removeDupliacate(){ this.ash.forEach(function(item) { if(this.result.indexOf(item) < 0) { this.result.push(item); } }); } and then in your template <tbody *ngFor=”let dt of result;let i = index” > <tr> <td class=”tg-yw4l nobord” style=”border-left: inset;border-right: none;”>{{dt.values}}</td> </tr> <tr> <td>{{dt.value2}}</td> </tr> </tbody> or you can implement pipe with the … Read more