how delete duplicates value in array js 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;
})