forked from MapComplete/MapComplete
		
	Add propagation of metadata in changedescriptions, aggregate metadata in changeset tags
This commit is contained in:
		
							parent
							
								
									81f3ec385f
								
							
						
					
					
						commit
						21fd148f38
					
				
					 19 changed files with 545 additions and 403 deletions
				
			
		
							
								
								
									
										8
									
								
								Utils.ts
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								Utils.ts
									
										
									
									
									
								
							|  | @ -101,6 +101,14 @@ export class Utils { | |||
|         return ls; | ||||
|     } | ||||
| 
 | ||||
|     public static Hist(array: string[]): Map<string, number>{ | ||||
|         const hist = new Map<string, number>(); | ||||
|         for (const s of array) { | ||||
|             hist.set(s, 1 + (hist.get(s) ?? 0)) | ||||
|         } | ||||
|         return hist; | ||||
|     } | ||||
|      | ||||
|     public static NoEmpty(array: string[]): string[] { | ||||
|         const ls: string[] = []; | ||||
|         for (const t of array) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue