The array from which to remove duplicates.
The new array with duplicates removed.
This function uses the JavaScript Set object to remove duplicate values from an array.
T - The type of elements in the array.
const array = [1, 2, 2, 3, 4, 4, 5];
arrRemoveDuplicates(array);
//=> [1, 2, 3, 4, 5]
Generated using TypeDoc
Remove duplicates from an array