chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2024-11-14 02:21:10 +01:00
parent 47281a8d6c
commit 3fd14e82a0
84 changed files with 2093 additions and 1450 deletions

View file

@ -1295,8 +1295,10 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
*
* {"a": "b", "c":"d"} // => {"b":"a", "d":"c"}
*/
public static transposeMapSimple<K extends string, V extends string>(d: Record<K, V>): Record<V, K>{
const inv = <Record<V, K>> {}
public static transposeMapSimple<K extends string, V extends string>(
d: Record<K, V>
): Record<V, K> {
const inv = <Record<V, K>>{}
for (const k in d) {
const v = d[k]
inv[v] = k