Skip to content

Files

Latest commit

 

History

History
 
 

00949-medium-anyof

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

AnyOf medium #array

by null @kynefuk

Take the Challenge    简体中文

Implement Python liked any function in the type system. A type takes the Array and returns true if any element of the Array is true. If the Array is empty, return false.

For example:

type Sample1 = AnyOf<[1, '', false, [], {}]> // expected to be true.
type Sample2 = AnyOf<[0, '', false, [], {}]> // expected to be false.

Back Share your Solutions Check out Solutions