fix types in array helper

This commit is contained in:
Thomas Ruoff
2025-04-01 22:10:28 +02:00
parent d461e83165
commit cebbebf5df
2 changed files with 2 additions and 4 deletions

View File

@@ -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
}