forked from MapComplete/MapComplete
		
	Improve typing, remove obsolete console.log
This commit is contained in:
		
							parent
							
								
									1ec2678e49
								
							
						
					
					
						commit
						eee8f1bf33
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		
							
								
								
									
										4
									
								
								Utils.ts
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								Utils.ts
									
										
									
									
									
								
							|  | @ -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> { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue