Skip to content

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.

VexWhereNodeOf<unknown>

The where tree, or a branch of it during recursion.

number

The number of leaf conditions under node, inclusive.