can define multiple properties. can see detailed view of chosen property.
This commit is contained in:
parent
1660b06064
commit
c7e661eb61
31 changed files with 502 additions and 307 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue