Remove duplicate values from JS array [duplicate]
This question already has answers here: Get all unique values in a JavaScript array (remove duplicates) (83 answers) Closed 4 years ago. 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. … Read more