dingxyang/type-challenges

898 - Includes

dingxyang opened this issue · 0 comments

type Includes<T extends readonly any[], U> = T extends [infer A, ...infer Rest] ? (Equal<A, U> extends true ? true : Includes<Rest, U>) : false