Remove duplicate values from JS array

clock icon

asked 1 month ago Asked

message

0 Answers

eye

5 Views

I have a very simple JavaScript array that may or may not contain duplicates.

var names = ["Mike","Matt","Nancy","Adam","Jenny","Nancy","Carl"];

I need to remove the duplicates and put the unique values in a new array.

I could point to all the code that I've tried but I think it's useless because they don't work. I accept jQuery solutions too.

0 Answers

Write your answer here

Top Questions