7 lines
198 B
TypeScript
7 lines
198 B
TypeScript
/**
|
|
* Remoes al lduplicates from array
|
|
*
|
|
* @param array The array to remove duplicates from
|
|
*/
|
|
export const removeDuplicates = <T>(array: T[]): T[] =>
|
|
Array.from(new Set<T>(array).values())
|