# Tree.isExpanded

Tests membership in expandedIds without touching the DOM.

## Signatures

```ts
export declare function isExpanded(state: State, id: string): boolean;
```



## Examples

```ts
import * as Tree from "@typed/ui/Tree";

const expanded = Tree.isExpanded({ activeId: null, expandedIds: ["parent"], loop: true }, "parent");
```
