# pane.Pane.equals

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