Method Array.any()
- Method
any
boolany(arraya,function(__unknown__,__unknown__... :mixed)predicate,mixed...extra_args)- Description
Returns 1 if any of the elements in
afulfills the requirementpredicate(a[i], @extra_args), otherwise 0. The predicate should return non-zero for an element that meets the requirements and zero for those that do not.- Example
Array.any( ({ 2, 4, 6, 8 }), `>, 5 )
- See also