GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 10 von 10 · Medien

Return Unique Names

Kostas Diakogiannis

Return Unique Names

ES-5 Find Unique Names

Given that you have the following data that is comprised from many names.

let names = [
  'Mauro',
  'Eugen',
  'Mauro',
  'Meir',
  'Eugen',
  'Jens',
  'Jens',
  'Jake',
  'Mohammed',
  'Mauro',
  'Mohammed',
  'Marcelo',
  'Sue',
  'Murhaf',
  'Jens'
];

Create a single arrow function that accepts this array as an argument and returns a new collection (new array with unique names, so no duplicates allowed. All the names but only once!).

Hint: You can use the Set constructor you just learned and pass an array as an argument...

 

 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck