refactor(frontend): Linting errors wegwerken

This commit is contained in:
Tibo De Peuter 2025-04-19 10:19:01 +02:00
parent e2ec28bbfb
commit a5e095b852
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
10 changed files with 72 additions and 69 deletions

View file

@ -1,4 +1,4 @@
export function copyArrayWith<T>(index: number, newValue: T, array: T[]) {
export function copyArrayWith<T>(index: number, newValue: T, array: T[]): T[] {
const copy = [...array];
copy[index] = newValue;
return copy;

View file

@ -3,7 +3,7 @@ export function deepEquals<T>(a: T, b: T): boolean {
return true;
}
if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) {
if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) {
return false;
}