Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

selection.Selection.toArray

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
selection
Declared in
Selection
Package
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.