export function unduplicateArray(array: any[]) { return [...new Set(array.flat())] }