Selection.filter
Keep the members predicate accepts.
Source and package
- Qualified name
-
Selection.filter - Module
- selection
- Declared in
Selection- Package
- libtmux
- Source
- packages/libtmux/src/selection.ts
-
Description#
For a question that has to run code. When the question can be expressed as criteria,
where()says the same thing as data — which can be logged, sent to another process, or stored.Examples#
snapshot.panes.filter((entry) => entry.currentCommand?.startsWith("v") === true);- Type parameters
-
-
Narrowed# forfilter(predicate, thisArg) [overload 1]Bound Model
-
Modeldeclared bySelection<Model>
-
- Parameters
Guides#
Pages that discuss filter.