Signature
path=null start=null
Type Parameters
- T extends
string | number
Parameters
- arr:
T[]- The array to remove duplicates from.
Returns
T[] - A new array with duplicates removed.
Removes duplicates from an array of numbers or strings.
string | numberT[] - The array to remove duplicates from.T[] - A new array with duplicates removed.