struct.each()

call the given UDF/Closure with every entry (key/value) in the struct.

struct.each( struct, closure [, parallel [, maxThreads ] ] )

Returns: void

Argument Description
struct
struct, required

struct to take values from

Alias: structure

closure
function, required

UDF/Closure that call with the entries from struct

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

Examples

There are currently no examples for this function

See also