Selection.toArray
A plain array of the members, in order.
Source and package
- Qualified name
-
Selection.to Array - Module
- selection
- Declared in
Selection- Package
- libtmux
- Source
- packages/libtmux/src/selection.ts
-
Description#
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);- Type parameters
-
-
Modeldeclared bySelection<Model>
-