On this page
selection.Selection.oneOrUndefined
- Module
- selection
- Declared in
- Selection
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/selection.ts
-
The single member, or undefined when there is none.
onewithout the empty case: several still throws, because that says the criteria were wrong rather than that the answer is absent.Examples
snapshot.sessions.oneOrUndefined({ name: "work" })?.id;Discussed in Filtering and queries
0 declared, 0 inherited