Skip to content

Files

Latest commit

eddde5d · Jul 6, 2022

History

History
This branch is 277 commits behind type-challenges/type-challenges:main.

00898-easy-includes

Includes easy #array

by null @kynefuk

Take the Challenge    简体中文 日本語 한국어

Implement the JavaScript Array.includes function in the type system. A type takes the two arguments. The output should be a boolean true or false.

For example:

type isPillarMen = Includes<['Kars', 'Esidisi', 'Wamuu', 'Santana'], 'Dio'> // expected to be `false`

Back Share your Solutions Check out Solutions