shaKY-iota / type-challenges

Collection of TypeScript type challenges with online judge
https://tsch.js.org/
MIT License
0 stars 0 forks source link

949 - AnyOf #30

Open shaKY-iota opened 2 years ago

shaKY-iota commented 2 years ago
// your answers
type AnyOf<T extends readonly unknown[]> = T[number] extends false | "" | 0 | null | undefined | [] | { [key: string]: never } ? false : true;