element-plus/packages/utils-v2/arrays.ts

2 lines
57 B
TypeScript
Raw Normal View History

export const unique = <T>(arr: T[]) => [...new Set(arr)]