You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			9 lines
		
	
	
		
			264 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			264 B
		
	
	
	
		
			TypeScript
		
	
| 
											3 years ago
										 | import { compact, uniq } from 'lodash'; | ||
|  | 
 | ||
|  | /** | ||
|  |  * Returns a compact list of all the items present in all those arrays, once each only. | ||
|  |  */ | ||
|  | export function uniqFromListOfList<T extends string>(list: Array<Array<T>>): Array<T> { | ||
|  |   return uniq(compact(list.flat())); | ||
|  | } |