can define multiple properties. can see detailed view of chosen property.

This commit is contained in:
Joeri Exelmans 2025-11-06 16:25:48 +01:00
parent 1660b06064
commit c7e661eb61
31 changed files with 502 additions and 307 deletions

View file

@ -83,4 +83,12 @@ export function mapsEqual<K,V>(a: Map<K,V>, b: Map<K,V>, cmp: (a: V, b: V) => bo
}
return true;
}
}
export function withGrow<T>(arr: T[], i: number, value: T, fill: T) {
if (i >= arr.length) {
arr = [...arr, ...new Array(i - arr.length + 1).map(_ => fill)];
}
return arr.with(i, value);
}