array.filter()

This function creates a new Array that returns all the values from an array that match the given filter.

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

Returns: Array

Argument Description
array
array, required

array to filter values from

filter
function, required

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