4 lines
87 B
TypeScript
4 lines
87 B
TypeScript
export function unduplicateArray(array: any[]) {
|
|
return [...new Set(array.flat())]
|
|
}
|