898 - Includes
Author: AndriikrylCreated Sep 4, 2026Updated Sep 4, 2026
Labelsansweren898
type Includes<T extends readonly any[], A> = T extends [infer First, ...infer Rest] ? First extends A ? true : Includes<Rest, A> : false;
type isPillarMen = Includes<['Kars', 'Esidisi', 'Wamuu', 'Santana'], 'Dio'> // expected to be false
Source: type-challenges/type-challenges