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

selection.Selection.first

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
first ( criteria : : WhereOf<Model> ) → Model | undefined
method [source]
method [source]
first

The first member, or the first matching criteria.

Answers undefined for no match. Use this when zero is an ordinary outcome; use one when it is not.

Examples

snapshot.windows.first({ name: "editor" })?.id;

0 declared, 0 inherited

Esc

Type to search.