Below are the duplicated fields i want to remove/filter.
Dropdown Name -> Family Values displaying currently ->
- BU
- State BU
- State BU
- BU
I want to remove these duplicate values from the dropdown.
ngOnInit() {
if (isUser == "Yes")
{
this.UserFamily.forEach(val => {
let found = this.deviceFamily.find(x => x == val.familyName);
if (found == null) {
this.deviceFamily.push(val.familyName);
}
});
}
}
Plese help me with how can i remove the duplicates.