Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

filter out duplicate values angular

this.InstructionTypes = val.filter((item, i, arr) =>
      // filter by what prop you want, here we use certification
	  arr.findIndex((x) => x.entityTable === item.entityTable) === i);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #duplicate #values #angular
ADD COMMENT
Topic
Name
7+9 =