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 codes that I’ve tried but I think it’s useless because they don’t work. I accept jQuery solutions too.
- Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array