1 export function deduplicate<T = any>(collection: T[]): T[] {
2 return [...new Set(collection)]
3 }