Question d’entretien chez MongoDB

Write a function that removes all duplicates from an array