CollectionSome()

This function calls a given closure/function with every element in a given collection and returns true, if one of the closure calls returns true.

CollectionSome( collection=object, closure=function, parallel=boolean, maxThreads=number );

Returns: Boolean

Argument Description Default
collection
object, required

collection to iterate

Alias: object

closure
function, required

function/closure that implements the following constructor [function(... depends on the given collection ...):boolean].

Alias: function, callback, udf

parallel
boolean, optional

execute closures parallel

maxThreads
number, optional

maximum number of threads executed, ignored when argument "parallel" is set to false

Alias: maxThreadCount

20

Examples

See also