* Queries the provided `root` element for sub elements by the selector and casts the result as an * array of elements
(root: HTMLElement, selector: string)
| 4025 | * array of elements |
| 4026 | */ |
| 4027 | function queryAll(root: HTMLElement, selector: string): HTMLElement[] { |
| 4028 | return Array.from(root.querySelectorAll(selector)); |
| 4029 | } |