# selection.Selection.at

- **Module:** selection.Selection
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/selection.ts#L371
- **Page:** https://libtmux.org/en/ts/latest/reference/selection-selection-at/

```
selection.Selection.at(index: : number) -> Model | undefined
```

The member at `index`, or undefined when the index is out of range.

## Example

```ts
snapshot.windows.at(0)?.name;
snapshot.windows.at(-1)?.name; // counts from the end
```
