# selection.Selection.at

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

```
at(index: number): Model | undefined
```

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

## Examples

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

## Type parameters

- [`Model`](/en/ts/latest/reference/selection-selection/#selection.Selection.type-parameter.Model), declared by [`Selection<Model>`](/en/ts/latest/reference/selection-selection/)

## Parameters

- `index` (`number`)
