i have tow array for tow drop down list,and i need to exclude the selected value from the list each time. but it does not work
arr1 = [{label: "Syria",value: 1},{label: "USA",value: 2}]
arr2 = [{country:1}]
excludeSelectedCountry() {
if ( arr1.length > 0) {
return arr1.filter(
country =>
!arr2.some(e => {
e.country && e.country === country.value;
})
);
} else return arr2;
}