# LibTmux.Selection.member_id?/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/selection.ex#L97
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-selection-member_id-question-2/

```
member_id?(selection, id)
@spec member_id?(t(), LibTmux.Ref.id()) :: boolean()
```

Checks native identity separately from Enumerable element membership.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `selection` (`t()`)
- `id` (`LibTmux.Ref.id()`)

## Guides

Pages that discuss `member_id?/2`.

- [Filter captured values](/en/elixir/pr-173/guides/filtering/)
