countWhereLeaves
countWhereLeaves(
node):number
Defined in: packages/core/src/collections/savedListViews/whereReadability.ts:31
Counts the leaf conditions in a VexWhereNodeOf tree, walking
and/or/not recursively. One leaf is one condition a user would see
as one row in the filter builder.
Parameters
Section titled “Parameters”VexWhereNodeOf<unknown>
The where tree, or a branch of it during recursion.
Returns
Section titled “Returns”number
The number of leaf conditions under node, inclusive.