Hi friends,
need to remove first duplicate value in array not second.
var names = ["A","B","C","D","E","B","F"];
var uniqueNames = [];
$.each(names, function(i, el){
if($.inArray(el, uniqueNames) === -1) uniqueNames.push(el);
});
need to remove first duplicate value in array
expected output is:
var names = ["A","C","D","E","B","F"];