- Preparing search index...
- The search index is not available
yatter
- unique<T>(arr: T[]): T[]
-
Returns T[]
- unique<T>(arr: T[], uniqueKey: Exclude<keyof T, keyof { [ K in string | number | symbol as T[K] extends string | number ? never : K]: false }>): T[]
-
Parameters
-
arr: T[]
-
uniqueKey: Exclude<keyof T, keyof { [ K in string | number | symbol as T[K] extends string | number ? never : K]: false }>
Returns T[]
- unique<T>(arr: T[], uniqueKey: ((ele: T, index: number) => unknown)): T[]
-
Parameters
-
arr: T[]
-
uniqueKey: ((ele: T, index: number) => unknown)
-
- (ele: T, index: number): unknown
-
Returns unknown
Returns T[]
对参数数组进行去重