Remove Duplicate

Write a function to return an array that duplicate primitive values are removed in

example:

removeDuplicate([1, 3, 3, 3, 1, 5, 6, 7, 8, 1]);
// [1, 3, 5, 6, 7, 8]


Share Comments