ArrayFilter

Used to filter an array to items for which the closure function returns true.

Method Signature

ArrayFilter(array=[array], callback=[function], parallel=[boolean], maxThreads=[integer], initialValue=[any])

Arguments

ArgumentTypeRequiredDescriptionDefault

array

array

true

The array to reduce

callback

function

true

The function to invoke for each item. The function will be passed 3 arguments: the value, the index, the array.

parallel

boolean

false

Specifies whether the items can be executed in parallel

false

maxThreads

integer

false

The maximum number of threads to use when parallel = true

initialValue

any

false

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC