On this page
selection.Selection.toArray
- Module
- selection
- Declared in
- Selection
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/selection.ts
-
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