struct.every()

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

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

Returns: Boolean

Argument Description
struct
struct, required

struct to iterate

closure
function, required

function/closure that implements the following constructor [function(string key, any value[array array]):boolean].

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