You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					15 lines
				
				279 B
			
		
		
			
		
	
	
					15 lines
				
				279 B
			| 
											3 years ago
										 | "use strict"; | ||
|  | 
 | ||
|  | exports.__esModule = true; | ||
|  | exports.default = childElements; | ||
|  | 
 | ||
|  | /** | ||
|  |  * Collects all child elements of an element. | ||
|  |  *  | ||
|  |  * @param node the element | ||
|  |  */ | ||
|  | function childElements(node) { | ||
|  |   return node ? Array.from(node.children) : []; | ||
|  | } | ||
|  | 
 | ||
|  | module.exports = exports["default"]; |