Javascript Array unique
April 03, 2019
Another note to myself. Filter Array’s unique values using vanilla Javascript like a boss
uniques = foo.filter(function(current, index, array) {
return array.indexOf(current) == index;
});
April 03, 2019
Another note to myself. Filter Array’s unique values using vanilla Javascript like a boss
uniques = foo.filter(function(current, index, array) {
return array.indexOf(current) == index;
});