how to delete similar name from array in javascript code example
Example: javascript to remove duplicates from an array
uniqueArray = a.filter(function(item, pos) {
return a.indexOf(item) == pos;
})
uniqueArray = a.filter(function(item, pos) {
return a.indexOf(item) == pos;
})