- Preparing search index...
- The search index is not available
yatter
- min<T>(arr: T[], compareKey: Exclude<keyof T, keyof { [ K in string | number | symbol as T[K] extends string | number ? never : K]: false }>): T
-
Parameters
-
arr: T[]
-
compareKey: Exclude<keyof T, keyof { [ K in string | number | symbol as T[K] extends string | number ? never : K]: false }>
Returns T
- min<T>(arr: T[], compareKey: ((ele: T, index: number) => string | number)): T
-
Parameters
-
arr: T[]
-
compareKey: ((ele: T, index: number) => string | number)
-
- (ele: T, index: number): string | number
-
Returns string | number
Returns T
根据对象属性查找最小值