Arrays & Array Methods (map, filter, reduce)

What is the purpose of comparing indexOf(value) with index?
const values = ['a', 'b', 'a', 'c', 'b'];
const unique = values.filter((value, index, array) => 
  array.indexOf(value) === index
);
Next Question (8/20)