libtmux Reference MCP Search
On this page

selection.Selection.map

View as Markdown

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