Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

concat array to an array only unique values in angular

array1 = array1.concat(array2.filter(item => array1.findIndex(x => x.value == item.value) < 0));
 
PREVIOUS NEXT
Tagged: #concat #array #array #unique #values #angular
ADD COMMENT
Topic
Name
2+3 =