Type alias Filter<T, P, Acc>
Filter<T, P, Acc>: T extends readonly [infer F, ...(infer Rest extends readonly unknown[])] ? [F] extends [P] ? Filter<Rest, P, [...Acc, F]> : Filter<Rest, P, Acc> : readonly [...Acc] Type Parameters
T extends readonly unknown[]
P
Acc extends readonly unknown[] = []
Filters out all members of T that are not P