Add theme introspecting mapcomplete changes

This commit is contained in:
Pieter Vander Vennet 2022-01-16 02:00:55 +01:00
parent ccb548816f
commit 2e2a6965e7
8 changed files with 275 additions and 47 deletions

View file

@ -137,14 +137,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
}
public static NoNull<T>(array: T[]): T[] {
const ls: T[] = [];
for (const t of array) {
if (t === undefined || t === null) {
continue;
}
ls.push(t);
}
return ls;
return array.filter(o => o !== undefined && o !== null)
}
public static Hist(array: string[]): Map<string, number> {