Count the number of true values in a boolean tuple.
true
Tuple of boolean values
Evaluates the tuple at the type level and returns a numeric literal. Useful as a building block for higher-order conditional helpers.
type A = CountTrue< [ true, false, true ] >; // 2type B = CountTrue< [ false, false ] >; // 0 Copy
type A = CountTrue< [ true, false, true ] >; // 2type B = CountTrue< [ false, false ] >; // 0
Count the number of
truevalues in a boolean tuple.