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

selection.Selection.map

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
map ( transform : : (value: Model, index: number, values: readonly Model[]) => Result , thisArg : : unknown ) → Result[]
method [source]
method [source]
map

Apply transform to each member, in order.

Returns an array rather than a Selection: the results are no longer tmux objects, so they carry no identity to filter, count, or traverse from.

Examples

snapshot.windows.map((entry) => entry.name); // string[]

0 declared, 0 inherited

Esc

Type to search.