# selection.Selection.at

- **Module:** selection.Selection
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/selection.ts#L365
- **Page:** https://libtmux.org/reference/ts/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
```
