mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix types in array helper
This commit is contained in:
@@ -17,6 +17,6 @@ export function getNextBigger<T>(array: T[], pivot: T): T {
|
||||
return array.sort().find((day) => day > pivot)
|
||||
}
|
||||
|
||||
export function uniqueFilter(value, index, self) {
|
||||
export function uniqueFilter<T>(value: T, index: number, self: T[]) {
|
||||
return self.indexOf(value) === index
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user