# getElements

Extracts all Elements from a `Rendered` value.

## Signatures

```ts
export declare function getElements(node: Rendered): Array<Element>;
```

## Why

Delegated native events attach to the concrete element roots represented by
arrays, fragments, and Wires.

## Ownership and lifetime

The returned array borrows exact Element objects; it does not clone or own
them.

## Examples

```ts
import { getElements } from "@typed/template/Wire"

const div = document.createElement("div")
const span = document.createElement("span")
const fragment = document.createDocumentFragment()
fragment.appendChild(div)
fragment.appendChild(span)

const elements = getElements(fragment)
console.log(elements.length) // 2
```
