Consider the following JS array:
0 - Star Wars: A New Hope
1 - Star Wars: The Empire Strikes Back
2 - Star Wars: Return of the Jedi
3 - Star Wars: A New Hope (1977)
4 - Star Wars: Return of the Jedi (1983)
5 - Star Wars: Attack of the Clones
6 - Star Wars: Revenge of the Sith
7 - Star Wars: The Phantom Menace
8 - Star Wars: Attack of the Clones (2002)
9 - Star Wars: Revenge of the Sith (2005)
We know that some items are similar. Below is the desired array output:
0 - Star Wars: A New Hope
1 - Star Wars: The Empire Strikes Back
2 - Star Wars: Return of the Jedi
5 - Star Wars: Attack of the Clones
6 - Star Wars: Revenge of the Sith
7 - Star Wars: The Phantom Menace
What approach can be used to exclude the similar items from the array?
Thank you