# pane.Pane.equals

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/pane.ts#L631
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-equals/

```
pane.Pane.equals(other: : unknown) -> boolean
```

Whether `other` is this same pane on this same server.

The socket, the daemon that answered, and `%n` all have to match — a
restarted server issues `%0` again to an entirely different pane, so two
handles can agree on socket and id and still name different panes.
{@link sameTmuxIdAs} asks the weaker question.

## Example

```ts
pane.equals(await pane.refreshed()); // true
```
