Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
223 Bytes
export const uniq = <T>(...items: T[][]): T[] => {
const set = items.reduce<Set<T>>((acc, curr) => {
if (curr != null) curr.forEach((item) => acc.add(item))
return acc
}, new Set([]))
return Array.from(set)
}