skip to Main Content
How To Remove Duplicate Value From The Array Using JAVASCRIPT?

How to remove duplicate value from the array using JAVASCRIPT?

Many time we get the array with contains the duplicate value. how we can find that duplicate value form array and remove it easily. Let’s see how we can remove duplicate value from JAVASCRIPT array.

        var names = new Array("Mike","Matt","Nancy","Adam","Jenny","Nancy","Carl");
        var uniqueArray = names.filter(function(item, pos) {
            return names.indexOf(item) == pos;

If face any issue after using above code write the comment below.


I am a web designer and developer part-time blogger. Write something on some free time. Find my every day thought here :)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top