i want to eliminate duplicate object from an a list of arrays
i reshape the first array 'issueComment' using map and than use the filter to remove duplicate object but it doesnt work
const shapeCodes = this.issueComment.map(p => [p.ShapeCode, (this.lang === 'fr') ?
p.ShapeDescriptionFrench : p.ShapeDescriptionEnglish,
p.AdminVCCQuestionnaireInstanceID]).filter((value, index, self) => self.indexOf(value) === index);
console output:
6) [Array(3), Array(3), Array(3), Array(3), Array(3), Array(3)]
0: (3) ["Transit_right_14", "Glace porte passager", 3504406]
1: (3) ["Transit_right_14", "Glace porte passager", 3504406]
2: (3) ["Transit_right_14", "Glace porte passager", 3504406]
3: (3) ["Transit_right_14", "Glace porte passager", 3504406]
4: (3) ["Transit_right_14", "Glace porte passager", 3504406]
5: (3) ["Transit_right_14", "Glace porte passager", 3504406]