@tempots/std

FilterTuple type

Filters out elements from a tuple that are equal to the specified type.

Signature:

export type FilterTupleextends unknown[], N> = T extends [] ? [] : T extends [infer H, ...infer R] ? N extends H ? FilterTuple : [H, ...FilterTuple] : T;

References: FilterTuple