forked from MapComplete/MapComplete
Add theme introspecting mapcomplete changes
This commit is contained in:
parent
ccb548816f
commit
2e2a6965e7
8 changed files with 275 additions and 47 deletions
9
Utils.ts
9
Utils.ts
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue