Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to remove all duplicates from an array of objects

obj.arr = obj.arr.filter((value, index, self) =>
  index === self.findIndex((t) => (
    t.place === value.place && t.name === value.name
  ))
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #remove #duplicates #array #objects
ADD COMMENT
Topic
Name
2+6 =