struct.filter()

This function creates a new Struct that returns all entries from an struct that match the given filter.

struct.filter( struct, filter [, parallel [, maxThreads ] ] )

Returns: Struct

Argument Description
struct
struct, required

struct to filter entries from

filter
function, required

filter can be a function/closure that implements the following constructor [function(any key,any value):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