This function calls a given closure/function with every element in a given struct and returns true, if one of the closure calls returns true.
StructSome( struct, closure [, parallel [, maxThreads ] ] )
Returns: Boolean
Argument |
Description |
Default |
struct
struct,
required
|
struct to iterate
Alias: structure, object
|
|
closure
function,
required
|
function/closure that implements the following constructor [function(string key, any value[array array]):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
|
20
|
Examples
There are currently no examples for this function.
See also