Improve typing, remove obsolete console.log

This commit is contained in:
Pieter Vander Vennet 2022-08-17 02:44:09 +02:00
parent 1ec2678e49
commit eee8f1bf33
2 changed files with 2 additions and 3 deletions

View file

@ -151,8 +151,8 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
return res;
}
public static NoNull<T>(array: T[]): T[] {
return array?.filter(o => o !== undefined && o !== null)
public static NoNull<T>(array: T[]): NonNullable<T>[] {
return <any> array?.filter(o => o !== undefined && o !== null)
}
public static Hist(array: string[]): Map<string, number> {