query.filter()

This function creates a new Query that returns all rows from an query that match the given filter.

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

Returns: Query

Argument Description
query
query, required

query to filter entries from

filter
function, required

filter can be a function/closure that implements the following constructor [function(struct row[, number rowNumber, query query]):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