libtmux Reference MCP Search
On this page

selection.Selection.toArray

View as Markdown

Module
selection
Declared in
Selection
Package
@libtmux/libtmux
Source
packages/libtmux/src/selection.ts
toArray ( ) Model[]
method [source]
method [source]
toArray

A plain array of the members, in order.

The crossing to array semantics: slicing, reversing, indexing, spreading. The result is a copy, so mutating it cannot disturb the Selection.

Examples

const ordered = snapshot.panes.toArray();
ordered.slice(0, 2).map((entry) => entry.id);

0 declared, 0 inherited

Esc

Type to search.