GoConqr has a new look! Let us know what you think.

Module 10 of 10 · Media

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...

 

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?