arrayMap
11
4

Overview ColdFusion Open BlueDragon Lucee

Iterates over every entry of the array and calls the closure function to work on the element of the array. The returned value will be set at the same index in a new array and the new array will be returned

Attributes

Name Required Type Default Description
11
4
array Yes Array Input Array
4
closure No filter can be a function/closure that implements the following constructor [function(any value[, number index, array array]):any].
11
function Yes Function Closure or a function reference that will called for each of the iteration. The arguments passed to the callback areitem : item in the array. RequiredIndex : index of the array. Optionalarray : reference of the array. Optional
4
maxThreads No maximum number of threads executed, ignored when argument "parallel" is set to false
4
parallel No execute closures parallel